diff options
author | Tilmann Scheller <t.scheller@samsung.com> | 2014-10-07 10:19:34 +0000 |
---|---|---|
committer | Tilmann Scheller <t.scheller@samsung.com> | 2014-10-07 10:19:34 +0000 |
commit | 2bc5cb687b66059a34636e689d72d34b2b9494c2 (patch) | |
tree | d795e53150107cd2bb6859d73786ff7ce9593fb1 /llvm | |
parent | 941bbec6f4d90763ec3fd97f7380836c7085ea81 (diff) | |
download | bcm5719-llvm-2bc5cb687b66059a34636e689d72d34b2b9494c2.tar.gz bcm5719-llvm-2bc5cb687b66059a34636e689d72d34b2b9494c2.zip |
[InstCombine] Reformat if statements to comply with LLVM Coding Standards.
Patch by Sonam Kumari!
Differential Revision: http://reviews.llvm.org/D5643
llvm-svn: 219198
Diffstat (limited to 'llvm')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 0a19a4880f2..2f57a73ba65 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -175,8 +175,12 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) { if (NewCst) { BinaryOperator *Shl = BinaryOperator::CreateShl(NewOp, NewCst); - if (I.hasNoSignedWrap()) Shl->setHasNoSignedWrap(); - if (I.hasNoUnsignedWrap()) Shl->setHasNoUnsignedWrap(); + + if (I.hasNoSignedWrap()) + Shl->setHasNoSignedWrap(); + if (I.hasNoUnsignedWrap()) + Shl->setHasNoUnsignedWrap(); + return Shl; } } |