mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 03:53:04 +02:00
Eliminate a broken transformation, fixing PR548
llvm-svn: 21354
This commit is contained in:
parent
3d4612c54c
commit
6b0132b48b
@ -1935,10 +1935,8 @@ Instruction *InstCombiner::visitOr(BinaryOperator &I) {
|
|||||||
}
|
}
|
||||||
break; // (X == 13 | X == 15) -> no change
|
break; // (X == 13 | X == 15) -> no change
|
||||||
|
|
||||||
case Instruction::SetGT:
|
case Instruction::SetGT: // (X == 13 | X > 14) -> no change
|
||||||
if (LHSCst == SubOne(RHSCst)) // (X == 13 | X > 14) -> X > 13
|
break;
|
||||||
return new SetCondInst(Instruction::SetGT, LHSVal, LHSCst);
|
|
||||||
break; // (X == 13 | X > 15) -> no change
|
|
||||||
case Instruction::SetNE: // (X == 13 | X != 15) -> X != 15
|
case Instruction::SetNE: // (X == 13 | X != 15) -> X != 15
|
||||||
case Instruction::SetLT: // (X == 13 | X < 15) -> X < 15
|
case Instruction::SetLT: // (X == 13 | X < 15) -> X < 15
|
||||||
return ReplaceInstUsesWith(I, RHS);
|
return ReplaceInstUsesWith(I, RHS);
|
||||||
|
Loading…
Reference in New Issue
Block a user