Now that we look at all the header PHIs, we need to consider all the header PHIs
authorNick Lewycky <nicholas@mxc.ca>
Mon, 24 Oct 2011 21:02:38 +0000 (21:02 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 24 Oct 2011 21:02:38 +0000 (21:02 +0000)
commit3846163aee1b14545057c8664f80a18c55309462
tree9391b86b770404596089024f719965be3d11b4b7
parent3f3f6b067c62d512e4e0b0c54bfc331bd34be338
Now that we look at all the header PHIs, we need to consider all the header PHIs
when deciding that the loop has stopped evolving. Fixes miscompile in the gcc
torture testsuite!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142843 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp
test/Analysis/ScalarEvolution/trip-count11.ll [new file with mode: 0644]