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:
9ee863e
)
Simplify, suggested by Chris Lattner.
author
Nick Lewycky
<nicholas@mxc.ca>
Wed, 9 Jul 2008 07:35:26 +0000
(07:35 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Wed, 9 Jul 2008 07:35:26 +0000
(07:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53283
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 8d35bb5af03eb2e70e03c81304feaf87ef6b82f9..c573f7f5312f68914d0914e079d31ea29b75180a 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-3478,7
+3478,7
@@
Instruction *InstCombiner::visitAnd(BinaryOperator &I) {
case Instruction::LShr:
// (1 << x) & 1 --> zext(x == 0)
// (1 >> x) & 1 --> zext(x == 0)
- if (AndRHSMask
.getLimitedValue()
== 1 && Op0LHS == AndRHS) {
+ if (AndRHSMask == 1 && Op0LHS == AndRHS) {
Instruction *NewICmp = new ICmpInst(ICmpInst::ICMP_EQ, Op0RHS,
Constant::getNullValue(I.getType()));
InsertNewInstBefore(NewICmp, I);