diff options
| author | Chris Lattner <sabre@nondot.org> | 2005-04-19 06:04:18 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2005-04-19 06:04:18 +0000 |
| commit | 5c219469a0f50c91c03a5000c6aa6a076e323060 (patch) | |
| tree | e8ec15d790014c0616257829cfac847172077e55 /llvm/lib | |
| parent | 53c40624f9bf5d71fbd50331b1bcffb0d535f33b (diff) | |
| download | bcm5719-llvm-5c219469a0f50c91c03a5000c6aa6a076e323060.tar.gz bcm5719-llvm-5c219469a0f50c91c03a5000c6aa6a076e323060.zip | |
Eliminate a broken transformation, fixing PR548
llvm-svn: 21354
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index b2609fe38bc..6c1284cbd52 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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); |

