OSDN Git Service

hasSCEV() was declared in ScalarEvolution.h, but never defined. This must have
authorTorok Edwin <edwintorok@gmail.com>
Fri, 1 May 2009 08:33:47 +0000 (08:33 +0000)
committerTorok Edwin <edwintorok@gmail.com>
Fri, 1 May 2009 08:33:47 +0000 (08:33 +0000)
gone lost during the pImpl conversion.

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

lib/Analysis/ScalarEvolution.cpp

index fbfb030..3e2b735 100644 (file)
@@ -1538,6 +1538,12 @@ SCEVHandle ScalarEvolution::getCouldNotCompute() {
   return UnknownValue;
 }
 
+// hasSCEV - Return true if the SCEV for this value has already been
+/// computed.
+bool ScalarEvolution::hasSCEV(Value *V) const {
+  return Scalars.count(V);
+}
+
 /// getSCEV - Return an existing SCEV if it exists, otherwise analyze the
 /// expression and create a new one.
 SCEVHandle ScalarEvolution::getSCEV(Value *V) {