Disable an xform that causes an infinite loop. This fixes PR1594
authorChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 16:56:32 +0000 (16:56 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 2 Aug 2007 16:56:32 +0000 (16:56 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@40739 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Scalar/InstructionCombining.cpp

index 84ae26427b79647cacbc8626df1d5e78d2e160fe..806c6e4da9b0f9482201687517550e3af625edf6 100644 (file)
@@ -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;