mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Fix bug: test/Regression/Other/2002-03-11-InstCombineHang.ll
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1864 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4c63ce3d23
commit
a007bc2c14
@ -43,8 +43,8 @@ static Instruction *CombineBinOp(BinaryOperator *I) {
|
|||||||
if (I->getType()->isIntegral() && cast<ConstantInt>(Op2)->equalsInt(0)){
|
if (I->getType()->isIntegral() && cast<ConstantInt>(Op2)->equalsInt(0)){
|
||||||
// Eliminate 'add int %X, 0'
|
// Eliminate 'add int %X, 0'
|
||||||
I->replaceAllUsesWith(Op1); // FIXME: This breaks the worklist
|
I->replaceAllUsesWith(Op1); // FIXME: This breaks the worklist
|
||||||
LocalChange = true;
|
Changed = true;
|
||||||
break;
|
return I;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Instruction *IOp1 = dyn_cast<Instruction>(Op1)) {
|
if (Instruction *IOp1 = dyn_cast<Instruction>(Op1)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user