Fix PR3452 (an infinite loop bootstrapping) by disabling the recent
authorChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 19:05:27 +0000 (19:05 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 31 Jan 2009 19:05:27 +0000 (19:05 +0000)
commit39c27eddc536578d1694f8e0cf81ae9a6bf9da51
tree8f5aa93e526d17eccd929a97664312a19cbcd3fe
parent92abc62399881ba9c525be80362c134ad836e2d9
Fix PR3452 (an infinite loop bootstrapping) by disabling the recent
improvements to the EvaluateInDifferentType code.  This code works
by just inserted a bunch of new code and then seeing if it is
useful.  Instcombine is not allowed to do this: it can only insert
new code if it is useful, and only when it is converging to a more
canonical fixed point.  Now that we iterate when DCE makes progress,
this causes an infinite loop when the code ends up not being used.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@63483 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
test/Transforms/InstCombine/2009-01-31-InfIterate.ll [new file with mode: 0644]
test/Transforms/InstCombine/cast-sext-zext.ll