commit | 581e1ad0a88658cde9eeab61416257dc582f5d2b | [log] [tgz] |
---|---|---|
author | Chris Lattner <sabre@nondot.org> | Thu Aug 02 16:56:32 2007 +0000 |
committer | Chris Lattner <sabre@nondot.org> | Thu Aug 02 16:56:32 2007 +0000 |
tree | 5b6db9789e4703788c85aa60b44c4a4b0057cd67 | |
parent | 03dc7d717c6372b0c310e05d2cfff119e2d0fd64 [diff] [blame] |
Disable an xform that causes an infinite loop. This fixes PR1594 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40739 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 84ae264..806c6e4 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/lib/Transforms/Scalar/InstructionCombining.cpp
@@ -6385,6 +6385,7 @@ case Instruction::Trunc: // If this is the same kind of case as our original (e.g. zext+zext), we // can safely eliminate it. + break; // FIXME: This causes PR1594 if (I->getOpcode() == CastOpc) { ++NumCastsRemoved; return true;