[llvm] r219198 - [InstCombine] Reformat if statements to comply with LLVM Coding Standards.

Tilmann Scheller t.scheller at samsung.com
Tue Oct 7 03:19:34 PDT 2014


Author: tilmann
Date: Tue Oct  7 05:19:34 2014
New Revision: 219198

URL: http://llvm.org/viewvc/llvm-project?rev=219198&view=rev
Log:
[InstCombine] Reformat if statements to comply with LLVM Coding Standards.

Patch by Sonam Kumari!

Differential Revision: http://reviews.llvm.org/D5643

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=219198&r1=219197&r2=219198&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Tue Oct  7 05:19:34 2014
@@ -175,8 +175,12 @@ Instruction *InstCombiner::visitMul(Bina
 
       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;
       }
     }





More information about the llvm-commits mailing list