diff options
author | Torok Edwin <edwintorok@gmail.com> | 2009-05-01 08:33:47 +0000 |
---|---|---|
committer | Torok Edwin <edwintorok@gmail.com> | 2009-05-01 08:33:47 +0000 |
commit | e3d12854b810c3116a0cd9480f5aeb008ab06101 (patch) | |
tree | b26f6156c7e3cd8c266909b1f87a343d68829813 /lib/Analysis/ScalarEvolution.cpp | |
parent | ef956fc784dc43ba58c8d68df64c9f68e662a22e (diff) |
hasSCEV() was declared in ScalarEvolution.h, but never defined. This must have
gone lost during the pImpl conversion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70536 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Analysis/ScalarEvolution.cpp')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index fbfb0308e3..3e2b7354a8 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -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) { |