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:
f0e44c4
)
Don't make TwoToExp signed by default.
author
Bill Wendling
<isanbard@gmail.com>
Sun, 30 Nov 2008 05:29:33 +0000
(
05:29
+0000)
committer
Bill Wendling
<isanbard@gmail.com>
Sun, 30 Nov 2008 05:29:33 +0000
(
05:29
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@60279
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 fce23739b665a0e2b1e8e2610a97b7658fa536bd..f3cb747e56f752a3eecc8871daa240dea31dff0b 100644
(file)
--- a/
lib/Transforms/Scalar/InstructionCombining.cpp
+++ b/
lib/Transforms/Scalar/InstructionCombining.cpp
@@
-2960,8
+2960,7
@@
Instruction *InstCombiner::visitSDiv(BinaryOperator &I) {
APInt RHSNegAPI(RHSNeg->getBitWidth(), RHSNeg->getSExtValue(), true);
APInt NegOne = -APInt(RHSNeg->getBitWidth(), 1, true);
- APInt TwoToExp(RHSNeg->getBitWidth(), 1 << (RHSNeg->getBitWidth() - 1),
- true);
+ APInt TwoToExp(RHSNeg->getBitWidth(), 1 << (RHSNeg->getBitWidth() - 1));
// -X/C -> X/-C, if and only if negation doesn't overflow.
if ((RHS->getSExtValue() < 0 && RHSNegAPI.slt(TwoToExp - 1)) ||