mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-27 06:54:30 +00:00
Forgot one remaining call to getSExtValue().
llvm-svn: 60289
This commit is contained in:
parent
97ad688c1b
commit
92ebd6902d
@ -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->getBitWidth(), CINeg->getSExtValue(), true);
|
||||
APInt CINegAPI(CINeg->getValue());
|
||||
|
||||
if ((CI->getValue().isNegative() && CINegAPI.slt(TwoToExp - 1)) ||
|
||||
(CI->getValue().isNonNegative() && CINegAPI.sgt(TwoToExp*NegOne)))
|
||||
|
Loading…
x
Reference in New Issue
Block a user