mirror of
https://github.com/RPCS3/llvm.git
synced 2024-11-26 21:20:29 +00:00
Eliminate a broken transformation, fixing PR548
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21354 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
f577c6122f
commit
240d6f4c9d
@ -1935,10 +1935,8 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
||||
}
|
||||
break; // (X == 13 | X == 15) -> no change
|
||||
|
||||
case Instruction::SetGT:
|
||||
if (LHSCst == SubOne(RHSCst)) // (X == 13 | X > 14) -> X > 13
|
||||
return new SetCondInst(Instruction::SetGT, LHSVal, LHSCst);
|
||||
break; // (X == 13 | X > 15) -> no change
|
||||
case Instruction::SetGT: // (X == 13 | X > 14) -> no change
|
||||
break;
|
||||
case Instruction::SetNE: // (X == 13 | X != 15) -> X != 15
|
||||
case Instruction::SetLT: // (X == 13 | X < 15) -> X < 15
|
||||
return ReplaceInstUsesWith(I, RHS);
|
||||
|
Loading…
Reference in New Issue
Block a user