Fixes PR9730: indvars: An asserting value handle still pointed to this value
authorAndrew Trick <atrick@apple.com>
Wed, 27 Apr 2011 23:00:03 +0000 (23:00 +0000)
committerAndrew Trick <atrick@apple.com>
Wed, 27 Apr 2011 23:00:03 +0000 (23:00 +0000)
commit685f07fac2754f98f5273f3a9a32da27027c2172
tree83d0ef8da407901c4babb0c37c9cba0d9f44b444
parente1cdf84ee5ca72a38f4dedd6b12cce21cf83e415
Fixes PR9730: indvars: An asserting value handle still pointed to this value

Modified LinearFunctionTestReplace to push the condition on the dead
list instead of eagerly deleting it. This can cause unnecessary
IV rewrites, which should have no effect on codegen and will not be an
issue once we stop generating canonical IVs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130340 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/IndVarSimplify.cpp
test/Transforms/IndVarSimplify/2009-04-27-Floating.ll