summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2014-12-26 09:10:14 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2014-12-26 09:10:14 +0000
commit54c2ca25392d242fcf1e5cdc3d97737c8b002384 (patch)
tree5c6c018a438ea98ddc5274fd43f9d0f358ddba94 /llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
parentee9eef2fd865632d7ae8f8f8f05b37b2cc518afe (diff)
downloadbcm5719-llvm-54c2ca25392d242fcf1e5cdc3d97737c8b002384.tar.gz
bcm5719-llvm-54c2ca25392d242fcf1e5cdc3d97737c8b002384.zip
InstCombe: Infer nsw for multiplies
We already utilize this logic for reducing overflow intrinsics, it makes sense to reuse it for normal multiplies as well. llvm-svn: 224847
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 6a4e721db46..a5dd89cc4af 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -886,8 +886,7 @@ Value *InstCombiner::simplifyRangeCheck(ICmpInst *Cmp0, ICmpInst *Cmp1,
// This simplification is only valid if the upper range is not negative.
bool IsNegative, IsNotNegative;
- ComputeSignBit(RangeEnd, IsNotNegative, IsNegative, DL, 0, AT,
- Cmp1, DT);
+ ComputeSignBit(RangeEnd, IsNotNegative, IsNegative, /*Depth=*/0, Cmp1);
if (!IsNotNegative)
return nullptr;
OpenPOWER on IntegriCloud