diff options
author | Dan Gohman <gohman@apple.com> | 2010-02-15 10:28:37 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2010-02-15 10:28:37 +0000 |
commit | fefbff9cd854ca7fc0873fb5dada2bce55f135ff (patch) | |
tree | 845ece4693af5a23aaa186f0bc8a52e793adb113 | |
parent | b02cdaaa9cd19b949b29a816ae18000c87472cef (diff) | |
download | bcm5719-llvm-fefbff9cd854ca7fc0873fb5dada2bce55f135ff.tar.gz bcm5719-llvm-fefbff9cd854ca7fc0873fb5dada2bce55f135ff.zip |
When testing whether a given SCEV depends on a temporary symbolic
name, test whether the SCEV itself is that temporary symbolic name,
in addition to checking whether the symbolic name appears as a
possibly-indirect operand.
llvm-svn: 96216
-rw-r--r-- | llvm/lib/Analysis/ScalarEvolution.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Analysis/ScalarEvolution.cpp b/llvm/lib/Analysis/ScalarEvolution.cpp index 12be58e8b3a..1ed9d071b29 100644 --- a/llvm/lib/Analysis/ScalarEvolution.cpp +++ b/llvm/lib/Analysis/ScalarEvolution.cpp @@ -2566,7 +2566,7 @@ ScalarEvolution::ForgetSymbolicName(Instruction *I, const SCEV *SymName) { if (It != Scalars.end()) { // Short-circuit the def-use traversal if the symbolic name // ceases to appear in expressions. - if (!It->second->hasOperand(SymName)) + if (It->second != SymName && !It->second->hasOperand(SymName)) continue; // SCEVUnknown for a PHI either means that it has an unrecognized |