OSDN Git Service

[SCEV] Use find instead of find_as; NFC
authorSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 27 Sep 2016 18:01:46 +0000 (18:01 +0000)
committerSanjoy Das <sanjoy@playingwithpointers.com>
Tue, 27 Sep 2016 18:01:46 +0000 (18:01 +0000)
We don't need the extra generality here.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@282514 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Analysis/ScalarEvolution.cpp

index 2b70cae..420915a 100644 (file)
@@ -3366,7 +3366,7 @@ bool ScalarEvolution::containsAddRecurrence(const SCEV *S) {
     bool isDone() const { return FoundOne; }
   };
 
-  HasRecMapType::iterator I = HasRecMap.find_as(S);
+  HasRecMapType::iterator I = HasRecMap.find(S);
   if (I != HasRecMap.end())
     return I->second;