diff options
author | Dan Gohman <gohman@apple.com> | 2009-06-29 20:34:13 +0000 |
---|---|---|
committer | Dan Gohman <gohman@apple.com> | 2009-06-29 20:34:13 +0000 |
commit | d86b11823d3a9d12acaa5febcc929fde1dd4583e (patch) | |
tree | 2613bbf85a7d846859612757279b877df72c6753 /lib | |
parent | 6d7e76fcbf525648907619997583132ac470964c (diff) | |
download | external_llvm-d86b11823d3a9d12acaa5febcc929fde1dd4583e.zip external_llvm-d86b11823d3a9d12acaa5febcc929fde1dd4583e.tar.gz external_llvm-d86b11823d3a9d12acaa5febcc929fde1dd4583e.tar.bz2 |
Don't cache PHI exit values from exhaustive evaluations, because
an individual exhaustive evaluation reflects only the exit value
implied by an individual exit, which may differ from the actual
exit value of the loop if there are other exits. This fixes PR4477.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74447 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Analysis/ScalarEvolution.cpp | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/lib/Analysis/ScalarEvolution.cpp b/lib/Analysis/ScalarEvolution.cpp index 6e32dcd..e38b24c 100644 --- a/lib/Analysis/ScalarEvolution.cpp +++ b/lib/Analysis/ScalarEvolution.cpp @@ -3521,7 +3521,6 @@ ScalarEvolution::ComputeBackedgeTakenCountExhaustively(const Loop *L, if (!CondVal) return getCouldNotCompute(); if (CondVal->getValue() == uint64_t(ExitWhen)) { - ConstantEvolutionLoopExitValue[PN] = PHIVal; ++NumBruteForceTripCountsComputed; return getConstant(Type::Int32Ty, IterationNum); } |