From b014678eb3ef1704d85b25ca2b879fe41b303140 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 2 Aug 2007 16:56:32 +0000 Subject: [PATCH] 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 --- lib/Transforms/Scalar/InstructionCombining.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 84ae26427b7..806c6e4da9b 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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; -- 2.34.1