projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f577c61
)
Eliminate a broken transformation, fixing PR548
author
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2005 06:04:18 +0000
(06:04 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Tue, 19 Apr 2005 06:04:18 +0000
(06:04 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@21354
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/InstructionCombining.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/InstructionCombining.cpp
b/lib/Transforms/Scalar/InstructionCombining.cpp
index b2609fe38bcecb2220128b07bb1e274a43877930..6c1284cbd52b00122fb7a780ab4249bb3cfc6ffe 100644
(file)
--- 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);