mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-12 18:33:22 +00:00
Don't rebuild RHSNeg. Just use the one that's already there.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60370 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
69fffa5437
commit
57036da328
@ -2937,8 +2937,7 @@ Instruction *InstCombiner::visitSDiv(BinaryOperator &I) {
|
||||
if (RHS != RHSNeg) { // Check that there is no overflow.
|
||||
Constant *CINeg = ConstantExpr::getNeg(CI);
|
||||
if (CI != CINeg) // Check that there is no overflow.
|
||||
return BinaryOperator::CreateSDiv(LHSNeg,
|
||||
ConstantExpr::getNeg(RHS));
|
||||
return BinaryOperator::CreateSDiv(LHSNeg, RHSNeg);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user