[llvm-commits] CVS: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
Chris Lattner
lattner at cs.uiuc.edu
Mon Apr 18 23:04:35 PDT 2005
Changes in directory llvm/lib/Transforms/Scalar:
InstructionCombining.cpp updated: 1.321 -> 1.322
---
Log message:
Eliminate a broken transformation, fixing PR548: http://llvm.cs.uiuc.edu/PR548
---
Diffs of the changes: (+2 -4)
InstructionCombining.cpp | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
Index: llvm/lib/Transforms/Scalar/InstructionCombining.cpp
diff -u llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.321 llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.322
--- llvm/lib/Transforms/Scalar/InstructionCombining.cpp:1.321 Thu Apr 7 23:03:26 2005
+++ llvm/lib/Transforms/Scalar/InstructionCombining.cpp Tue Apr 19 01:04:18 2005
@@ -1935,10 +1935,8 @@
}
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);
More information about the llvm-commits
mailing list