diff options
author | Dan Gohman <gohman@apple.com> | 2010-11-17 23:28:48 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-11-17 23:28:48 +0000 |
commit | 56a756821842678a96f2baa8c6a53bd28fc2b69e (patch) | |
tree | 88cd38efafd3b54a64e259de8296fc7245390c7a /include/llvm/Analysis/ScalarEvolution.h | |
parent | 714b5290b04e08570dae4304c1c92d30c06d3c99 (diff) | |
download | external_llvm-56a756821842678a96f2baa8c6a53bd28fc2b69e.zip external_llvm-56a756821842678a96f2baa8c6a53bd28fc2b69e.tar.gz external_llvm-56a756821842678a96f2baa8c6a53bd28fc2b69e.tar.bz2 |
Factor out the code for purging a SCEV from all the various memoization maps.
Some of these maps may merge in the future, but for now it's convenient to have
a utility function for them.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119587 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/ScalarEvolution.h')
-rw-r--r-- | include/llvm/Analysis/ScalarEvolution.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h index 26eceba..4ae0f5a 100644 --- a/include/llvm/Analysis/ScalarEvolution.h +++ b/include/llvm/Analysis/ScalarEvolution.h @@ -413,6 +413,9 @@ namespace llvm { bool isKnownPredicateWithRanges(ICmpInst::Predicate Pred, const SCEV *LHS, const SCEV *RHS); + /// forgetMemoizedResults - Drop memoized information computed for S. + void forgetMemoizedResults(const SCEV *S); + public: static char ID; // Pass identification, replacement for typeid ScalarEvolution(); |