From acf4e074a95bdddea291d3a1653633f683e80264 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 2 Apr 2007 05:42:22 +0000 Subject: [PATCH] use more obvious function name. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35587 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Transforms/Scalar/InstructionCombining.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/Transforms/Scalar/InstructionCombining.cpp b/lib/Transforms/Scalar/InstructionCombining.cpp index 3b81be3abfd..665c4a5930b 100644 --- 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().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); -- 2.34.1