mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-17 03:30:28 +00:00
Make this comment clearer. Instead of using an ambiguous ~ (not) on an icmp
predicate, swap the order of the operands. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@54907 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
91a0f78265
commit
e86389dd2a
@ -5830,7 +5830,7 @@ Instruction *InstCombiner::visitICmpInstWithInstAndIntCst(ICmpInst &ICI,
|
|||||||
ConstantInt::get(RHSV ^ SignBit));
|
ConstantInt::get(RHSV ^ SignBit));
|
||||||
}
|
}
|
||||||
|
|
||||||
// (icmp u/s (xor A ~SignBit), C) -> (icmp ~s/u A, (xor C ~SignBit))
|
// (icmp u/s (xor A ~SignBit), C) -> (icmp s/u (xor C ~SignBit), A)
|
||||||
if (!ICI.isEquality() && (~XorCST->getValue()).isSignBit()) {
|
if (!ICI.isEquality() && (~XorCST->getValue()).isSignBit()) {
|
||||||
const APInt &NotSignBit = XorCST->getValue();
|
const APInt &NotSignBit = XorCST->getValue();
|
||||||
ICmpInst::Predicate Pred = ICI.isSignedPredicate()
|
ICmpInst::Predicate Pred = ICI.isSignedPredicate()
|
||||||
|
Loading…
Reference in New Issue
Block a user