summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-08-02 16:56:32 +0000
committerChris Lattner <sabre@nondot.org>2007-08-02 16:56:32 +0000
commit222b214be777ba8f09c7a4a51bf989166eb6cb4f (patch)
tree95aaeb29a70fcf033761058158b9254c30130222 /llvm/lib/Transforms
parent2740694450a25af2519a0ccb76854d085224b127 (diff)
downloadbcm5719-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')
-rw-r--r--llvm/lib/Transforms/Scalar/InstructionCombining.cpp1
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;
OpenPOWER on IntegriCloud