[llvm] r219203 - Reformat if statement to comply with LLVM standards. NFC.
Suyog Sarda
suyog.sarda at samsung.com
Tue Oct 7 05:04:07 PDT 2014
Author: suyog
Date: Tue Oct 7 07:04:07 2014
New Revision: 219203
URL: http://llvm.org/viewvc/llvm-project?rev=219203&view=rev
Log:
Reformat if statement to comply with LLVM standards. NFC.
Differential Revision: http://reviews.llvm.org/D5644
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=219203&r1=219202&r2=219203&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Tue Oct 7 07:04:07 2014
@@ -886,7 +886,8 @@ static Instruction *foldUDivPow2Cst(Valu
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 *O
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;
}
More information about the llvm-commits
mailing list