diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-08-02 16:56:32 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-08-02 16:56:32 +0000 |
| commit | 222b214be777ba8f09c7a4a51bf989166eb6cb4f (patch) | |
| tree | 95aaeb29a70fcf033761058158b9254c30130222 /llvm/lib/Transforms/Scalar/InstructionCombining.cpp | |
| parent | 2740694450a25af2519a0ccb76854d085224b127 (diff) | |
| download | bcm5719-llvm-222b214be777ba8f09c7a4a51bf989166eb6cb4f.tar.gz bcm5719-llvm-222b214be777ba8f09c7a4a51bf989166eb6cb4f.zip | |
Disable an xform that causes an infinite loop. This fixes PR1594
llvm-svn: 40739
Diffstat (limited to 'llvm/lib/Transforms/Scalar/InstructionCombining.cpp')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 84ae26427b7..806c6e4da9b 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -6385,6 +6385,7 @@ static bool CanEvaluateInDifferentType(Value *V, const IntegerType *Ty, 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; |

