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 | 240d6f4c9d41426ef9f66fd896fd78eab9b03a0e (patch) | |
tree | f58b1a454dfecd234409a8401c2200335c71b872 /lib/Transforms | |
parent | f577c6122f8b51c4e4889f1e1c647ae210c501b8 (diff) |
Eliminate a broken transformation, fixing PR548
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21354 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/InstructionCombining.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index b2609fe38b..6c1284cbd5 100644 --- a/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/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); |