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:
514b4b0
)
Fix a bug Nate noticed, where we miscompiled a simple testcase
author
Chris Lattner
<sabre@nondot.org>
Fri, 22 Oct 2004 04:53:16 +0000
(
04:53
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Fri, 22 Oct 2004 04:53:16 +0000
(
04:53
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@17157
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 3119e5704401a9fd75c464210f322b9be4b312ce..61acad04f328d86fa582f10a695b14fc352cc2d3 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-1285,7
+1285,7
@@
Instruction *InstCombiner::OptAndOp(Instruction *Op,
Constant *AllOne = ConstantIntegral::getAllOnesValue(AndRHS->getType());
Constant *ShrMask = ConstantExpr::getUShr(AllOne, OpRHS);
Constant *CI = ConstantExpr::getAnd(AndRHS, ShrMask);
- if (CI ==
ShrMask
) { // Masking out bits shifted in.
+ if (CI ==
AndRHS
) { // Masking out bits shifted in.
// Make the argument unsigned.
Value *ShVal = Op->getOperand(0);
ShVal = InsertCastBefore(ShVal,