Reformat if statement to comply with LLVM standards. NFC.
authorSuyog Sarda <suyog.sarda@samsung.com>
Tue, 7 Oct 2014 12:04:07 +0000 (12:04 +0000)
committerSuyog Sarda <suyog.sarda@samsung.com>
Tue, 7 Oct 2014 12:04:07 +0000 (12:04 +0000)
Differential Revision: http://reviews.llvm.org/D5644

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219203 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/InstCombine/InstCombineMulDivRem.cpp

index 0853ec48a82610d0c555bc14f491baacf1be6931..260b7e7e4fe8fa126c1e219b9be200d8e8ec6bdf 100644 (file)
@@ -886,7 +886,8 @@ static Instruction *foldUDivPow2Cst(Value *Op0, Value *Op1,
   const APInt &C = cast<Constant>(Op1)->getUniqueInteger();
   BinaryOperator *LShr = BinaryOperator::CreateLShr(
       Op0, ConstantInt::get(Op0->getType(), C.logBase2()));
-  if (I.isExact()) LShr->setIsExact();
+  if (I.isExact())
+    LShr->setIsExact();
   return LShr;
 }
 
@@ -914,7 +915,8 @@ static Instruction *foldUDivShl(Value *Op0, Value *Op1, const BinaryOperator &I,
   if (ZExtInst *Z = dyn_cast<ZExtInst>(Op1))
     N = IC.Builder->CreateZExt(N, Z->getDestTy());
   BinaryOperator *LShr = BinaryOperator::CreateLShr(Op0, N);
-  if (I.isExact()) LShr->setIsExact();
+  if (I.isExact())
+    LShr->setIsExact();
   return LShr;
 }