[llvm-commits] [llvm] r60289 - /llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Bill Wendling
isanbard at gmail.com
Sun Nov 30 04:41:09 PST 2008
Author: void
Date: Sun Nov 30 06:41:09 2008
New Revision: 60289
URL: http://llvm.org/viewvc/llvm-project?rev=60289&view=rev
Log:
Forgot one remaining call to getSExtValue().
Modified:
llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp?rev=60289&r1=60288&r2=60289&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/InstructionCombining.cpp Sun Nov 30 06:41:09 2008
@@ -2968,7 +2968,7 @@
if (Value *LHSNeg = dyn_castNegVal(Op0)) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(LHSNeg)) {
ConstantInt *CINeg = cast<ConstantInt>(ConstantExpr::getNeg(CI));
- APInt CINegAPI(CINeg->getBitWidth(), CINeg->getSExtValue(), true);
+ APInt CINegAPI(CINeg->getValue());
if ((CI->getValue().isNegative() && CINegAPI.slt(TwoToExp - 1)) ||
(CI->getValue().isNonNegative() && CINegAPI.sgt(TwoToExp*NegOne)))
More information about the llvm-commits
mailing list