diff options
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 6 | 
1 files changed, 6 insertions, 0 deletions
| diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index fbfb0308e34..3e2b7354a80 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/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) { | 

