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:
4bf1e59
)
Remove misleading constant from comment.
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 11 Jul 2008 07:36:19 +0000
(07:36 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 11 Jul 2008 07:36:19 +0000
(07:36 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53452
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 727f7bdcd1ea8b087f689e16e2c60428f45c3cfd..31525102c711e093d12b63a5c9714369bd5fb4be 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-5497,7
+5497,7
@@
Instruction *InstCombiner::visitICmpInst(ICmpInst &I) {
break;
case Instruction::Mul:
if (ConstantInt *CI = dyn_cast<ConstantInt>(Op0I->getOperand(1))) {
- // a * Cst icmp eq/ne b * Cst --> a &
0x7f icmp b & 0x7f
+ // a * Cst icmp eq/ne b * Cst --> a &
Mask icmp b & Mask
if (!CI->isZero() && !CI->isOne()) {
const APInt &AP = CI->getValue();
ConstantInt *Mask = ConstantInt::get(