Don't cache PHI exit values from exhaustive evaluations, because
authorDan Gohman <gohman@apple.com>
Mon, 29 Jun 2009 20:34:13 +0000 (20:34 +0000)
committerDan Gohman <gohman@apple.com>
Mon, 29 Jun 2009 20:34:13 +0000 (20:34 +0000)
commitcffddcd72620d76e160c25780277c26d6792ca2c
tree2613bbf85a7d846859612757279b877df72c6753
parent63de5c3b7eda642ff76dffd6b109407565fdcd1b
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
lib/Analysis/ScalarEvolution.cpp
test/Transforms/IndVarSimplify/loop_evaluate9.ll [new file with mode: 0644]