summaryrefslogtreecommitdiff
path: root/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2008-07-09 07:35:26 +0000
committerNick Lewycky <nicholas@mxc.ca>2008-07-09 07:35:26 +0000
commitd8ad4922386d03ca130c093166118fd993707860 (patch)
tree9d930c3df2414804df508bfdf5ecb6f63177a0b6 /lib/Transforms/Scalar
parent9ee863ecc00ff191bfec3f1421d80b41989f4413 (diff)
downloadllvm-d8ad4922386d03ca130c093166118fd993707860.tar.gz
llvm-d8ad4922386d03ca130c093166118fd993707860.tar.bz2
llvm-d8ad4922386d03ca130c093166118fd993707860.tar.xz
Simplify, suggested by Chris Lattner.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53283 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Scalar')
-rw-r--r--lib/Transforms/Scalar/InstructionCombining.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp
index 8d35bb5af0..c573f7f531 100644
--- 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);