From: Tilmann Scheller Date: Tue, 7 Oct 2014 10:19:34 +0000 (+0000) Subject: [InstCombine] Reformat if statements to comply with LLVM Coding Standards. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=0ef79aa7010061e4d0eb5f5376cefc47017ecfe8;p=oota-llvm.git [InstCombine] Reformat if statements to comply with LLVM Coding Standards. Patch by Sonam Kumari! Differential Revision: http://reviews.llvm.org/D5643 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219198 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 0a19a4880f2..2f57a73ba65 100644 --- a/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/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; } }