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:
2811f2a
)
use more obvious function name.
author
Chris Lattner
<sabre@nondot.org>
Mon, 2 Apr 2007 05:42:22 +0000
(
05:42
+0000)
committer
Chris Lattner
<sabre@nondot.org>
Mon, 2 Apr 2007 05:42:22 +0000
(
05:42
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35587
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 3b81be3abfdba280c66653f030baa04dff9e4bfe..665c4a5930b7d046f914a563a2fcfe14ac765bcc 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-4015,7
+4015,7
@@
Instruction *InstCombiner::visitXor(BinaryOperator &I) {
ConstantExpr::getSub(NegOp0CI,
ConstantInt::get(I.getType(), 1)),
Op0I->getOperand(0));
- } else if (RHS->getValue().is
MinSignedValue
()) {
+ } else if (RHS->getValue().is
SignBit
()) {
// (X + C) ^ signbit -> (X + C + signbit)
Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue());
return BinaryOperator::createAdd(Op0I->getOperand(0), C);