aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-05-02 17:43:35 +0000
committerDan Gohman <gohman@apple.com>2009-05-02 17:43:35 +0000
commitfb7d35f22a958747dd3ae8861ae3ce018146131c (patch)
tree2c369a2c19a647521d83d77975a70ca4fc0ceb44 /include
parent9a936502fa7ffa8d8dd4f61354b9247908ab63b5 (diff)
downloadexternal_llvm-fb7d35f22a958747dd3ae8861ae3ce018146131c.zip
external_llvm-fb7d35f22a958747dd3ae8861ae3ce018146131c.tar.gz
external_llvm-fb7d35f22a958747dd3ae8861ae3ce018146131c.tar.bz2
When ScalarEvolution is told to forget the trip count for a loop, have
it also forget any SCEVs associated with loop-header PHIs in the loop, as they may be dependent on trip count information. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@70633 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Analysis/ScalarEvolution.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/Analysis/ScalarEvolution.h b/include/llvm/Analysis/ScalarEvolution.h
index 6ef0b35..a0a7c1e 100644
--- a/include/llvm/Analysis/ScalarEvolution.h
+++ b/include/llvm/Analysis/ScalarEvolution.h
@@ -333,6 +333,11 @@ namespace llvm {
/// expression cannot be evaluated, return UnknownValue itself.
SCEVHandle getSCEVAtScope(SCEV *S, const Loop *L);
+ /// forgetLoopPHIs - Delete the memoized SCEVs associated with the
+ /// PHI nodes in the given loop. This is used when the trip count of
+ /// the loop may have changed.
+ void forgetLoopPHIs(const Loop *L);
+
public:
static char ID; // Pass identification, replacement for typeid
ScalarEvolution();