summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2005-04-19 06:04:18 +0000
committerChris Lattner <sabre@nondot.org>2005-04-19 06:04:18 +0000
commit5c219469a0f50c91c03a5000c6aa6a076e323060 (patch)
treee8ec15d790014c0616257829cfac847172077e55 /llvm/lib
parent53c40624f9bf5d71fbd50331b1bcffb0d535f33b (diff)
downloadbcm5719-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.cpp6
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);
OpenPOWER on IntegriCloud