[llvm-commits] [llvm] r70536 - /llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Torok Edwin
edwintorok at gmail.com
Fri May 1 01:33:47 PDT 2009
Author: edwin
Date: Fri May 1 03:33:47 2009
New Revision: 70536
URL: http://llvm.org/viewvc/llvm-project?rev=70536&view=rev
Log:
hasSCEV() was declared in ScalarEvolution.h, but never defined. This must have
gone lost during the pImpl conversion.
Modified:
llvm/trunk/lib/Analysis/ScalarEvolution.cpp
Modified: llvm/trunk/lib/Analysis/ScalarEvolution.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Analysis/ScalarEvolution.cpp?rev=70536&r1=70535&r2=70536&view=diff
==============================================================================
--- llvm/trunk/lib/Analysis/ScalarEvolution.cpp (original)
+++ llvm/trunk/lib/Analysis/ScalarEvolution.cpp Fri May 1 03:33:47 2009
@@ -1538,6 +1538,12 @@
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) {
More information about the llvm-commits
mailing list