mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
fix regressions from my previous checking, including
Transforms/InstCombine/2006-12-08-ICmp-Combining.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36989 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
22d5c37f32
commit
3aea1bdca5
@ -3926,9 +3926,9 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
ICmpInst *LHS = cast<ICmpInst>(Op0);
|
||||
bool NeedsSwap;
|
||||
if (ICmpInst::isSignedPredicate(LHSCC))
|
||||
NeedsSwap = LHSCst->getValue().sgt(LHSCst->getValue());
|
||||
NeedsSwap = LHSCst->getValue().sgt(RHSCst->getValue());
|
||||
else
|
||||
NeedsSwap = LHSCst->getValue().ugt(LHSCst->getValue());
|
||||
NeedsSwap = LHSCst->getValue().ugt(RHSCst->getValue());
|
||||
|
||||
if (NeedsSwap) {
|
||||
std::swap(LHS, RHS);
|
||||
|
Loading…
Reference in New Issue
Block a user