diff options
| author | Chris Lattner <sabre@nondot.org> | 2007-04-02 05:42:22 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2007-04-02 05:42:22 +0000 |
| commit | 50490d54f227419703bcbf2d8957520278a96147 (patch) | |
| tree | 3811ff2af0d6ea04faa4d3199a3fd4cf77313708 /llvm/lib | |
| parent | a3e0bb4ebb38397cf5b8968c5d996655d60afbed (diff) | |
| download | bcm5719-llvm-50490d54f227419703bcbf2d8957520278a96147.tar.gz bcm5719-llvm-50490d54f227419703bcbf2d8957520278a96147.zip | |
use more obvious function name.
llvm-svn: 35587
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index 3b81be3abfd..665c4a5930b 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/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().isMinSignedValue()) { + } else if (RHS->getValue().isSignBit()) { // (X + C) ^ signbit -> (X + C + signbit) Constant *C = ConstantInt::get(RHS->getValue() + Op0CI->getValue()); return BinaryOperator::createAdd(Op0I->getOperand(0), C); |

