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:
6e1783f
)
Forgot one remaining call to getSExtValue().
author
Bill Wendling
<isanbard@gmail.com>
Sun, 30 Nov 2008 12:41:09 +0000
(12:41 +0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 30 Nov 2008 12:41:09 +0000
(12:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60289
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 93510f0593fbeea1c729ba1ca4fb084234e13596..8716e9a8a6c0983cf432d03d251c128aa2a45ec6 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2968,7
+2968,7
@@
Instruction *InstCombiner::visitSDiv(BinaryOperator &I) {
if (Value *LHSNeg = dyn_castNegVal(Op0)) {
if (ConstantInt *CI = dyn_cast<ConstantInt>(LHSNeg)) {
ConstantInt *CINeg = cast<ConstantInt>(ConstantExpr::getNeg(CI));
- APInt CINegAPI(CINeg->get
BitWidth(), CINeg->getSExtValue(), true
);
+ APInt CINegAPI(CINeg->get
Value()
);
if ((CI->getValue().isNegative() && CINegAPI.slt(TwoToExp - 1)) ||
(CI->getValue().isNonNegative() && CINegAPI.sgt(TwoToExp*NegOne)))