mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 05:25:47 +00:00
PR9838: Fix transform introduced in r127064 to not trigger when only one side of the icmp is an exact shift.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130954 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -2400,7 +2400,7 @@ Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
|
||||
// fall-through
|
||||
case Instruction::SDiv:
|
||||
case Instruction::AShr:
|
||||
if (!BO0->isExact() && !BO1->isExact())
|
||||
if (!BO0->isExact() || !BO1->isExact())
|
||||
break;
|
||||
return new ICmpInst(I.getPredicate(), BO0->getOperand(0),
|
||||
BO1->getOperand(0));
|
||||
|
Reference in New Issue
Block a user