mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-13 08:35:46 +00:00
use more obvious function name.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35587 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
2811f2a670
commit
acf4e074a9
@ -4015,7 +4015,7 @@ Instruction *InstCombiner::visitXor(BinaryOperator &I) {
|
||||
ConstantExpr::getSub(NegOp0CI,
|
||||
ConstantInt::get(I.getType(), 1)),
|
||||
Op0I->getOperand(0));
|
||||
} else if (RHS->getValue().isMinSignedValue()) {
|
||||
} else if (RHS->getValue().isSignBit()) {
|
||||
// (X + C) ^ signbit -> (X + C + signbit)
|
||||
Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue());
|
||||
return BinaryOperator::createAdd(Op0I->getOperand(0), C);
|
||||
|
Loading…
x
Reference in New Issue
Block a user