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:
f73b99a
)
Remove dead variable, const-ref-ize an APInt.
author
Owen Anderson
<resistor@mac.com>
Tue, 11 Jan 2011 18:26:37 +0000
(18:26 +0000)
committer
Owen Anderson
<resistor@mac.com>
Tue, 11 Jan 2011 18:26:37 +0000
(18:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123248
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/InstCombine/InstCombineCompares.cpp
b/lib/Transforms/InstCombine/InstCombineCompares.cpp
index 985d9129b3e4c2e583a9203fde3e38f3dbf24099..bd339742ef2f6b51e542b9289813d7de6c7a0063 100644
(file)
--- a/
lib/Transforms/InstCombine/InstCombineCompares.cpp
+++ b/
lib/Transforms/InstCombine/InstCombineCompares.cpp
@@
-1703,9
+1703,7
@@
static APInt DemandedBitsLHSMask(ICmpInst &I,
ConstantInt *CI = dyn_cast<ConstantInt>(I.getOperand(1));
if (!CI) return APInt::getAllOnesValue(BitWidth);
-
- APInt RHS = CI->getValue();
- APInt Mask(BitWidth, 0);
+ const APInt &RHS = CI->getValue();
switch (I.getPredicate()) {
// For a UGT comparison, we don't care about any bits that
@@
-1730,7
+1728,6
@@
static APInt DemandedBitsLHSMask(ICmpInst &I,
return APInt::getAllOnesValue(BitWidth);
}
- return Mask;
}
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {