mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-06 05:33:28 +00:00
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
This commit is contained in:
parent
684b22df79
commit
b014678eb3
@ -6385,6 +6385,7 @@ static bool CanEvaluateInDifferentType(Value *V, const IntegerType *Ty,
|
|||||||
case Instruction::Trunc:
|
case Instruction::Trunc:
|
||||||
// If this is the same kind of case as our original (e.g. zext+zext), we
|
// If this is the same kind of case as our original (e.g. zext+zext), we
|
||||||
// can safely eliminate it.
|
// can safely eliminate it.
|
||||||
|
break; // FIXME: This causes PR1594
|
||||||
if (I->getOpcode() == CastOpc) {
|
if (I->getOpcode() == CastOpc) {
|
||||||
++NumCastsRemoved;
|
++NumCastsRemoved;
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user