Don't assume it's safe to transform a loop just because it's dominated by any
authorNick Lewycky <nicholas@mxc.ca>
Mon, 6 Aug 2007 18:33:46 +0000 (18:33 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Mon, 6 Aug 2007 18:33:46 +0000 (18:33 +0000)
commit06323bfe034797be1f835459845f83a28400f707
tree40d5ef5f453fbb334bf1635aeb8f809529290e3d
parent7409cabc3e33545db59af61f05a4c870d7ad64c0
Don't assume it's safe to transform a loop just because it's dominated by any
comparison. Fixes bug 1598.

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