forked from OSchip/llvm-project
Disable an xform that causes an infinite loop. This fixes PR1594
llvm-svn: 40739
This commit is contained in:
parent
2740694450
commit
222b214be7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue