summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-01-07 00:39:42 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-01-07 00:39:42 +0000
commit3b83b3fa0bc874a6b02c97e026ddc3bfa9f0bdd4 (patch)
tree963c6d6323bb809f13a46d1515b8615630251e1d /llvm
parent03499e920b2ae022a084543527fc677512382650 (diff)
downloadbcm5719-llvm-3b83b3fa0bc874a6b02c97e026ddc3bfa9f0bdd4.tar.gz
bcm5719-llvm-3b83b3fa0bc874a6b02c97e026ddc3bfa9f0bdd4.zip
InstCombine: Just a small tidy-up
llvm-svn: 225328
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 11a28d4ac87..c42202a2fa6 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -441,11 +441,10 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
case Intrinsic::umul_with_overflow: {
Value *LHS = II->getArgOperand(0), *RHS = II->getArgOperand(1);
OverflowResult OR = computeOverflowForUnsignedMul(LHS, RHS, II);
- if (OR == OverflowResult::NeverOverflows) {
+ if (OR == OverflowResult::NeverOverflows)
return CreateOverflowTuple(II, Builder->CreateNUWMul(LHS, RHS), false);
- } else if (OR == OverflowResult::AlwaysOverflows) {
+ if (OR == OverflowResult::AlwaysOverflows)
return CreateOverflowTuple(II, Builder->CreateMul(LHS, RHS), true);
- }
} // FALL THROUGH
case Intrinsic::smul_with_overflow:
// Canonicalize constants into the RHS.
OpenPOWER on IntegriCloud