diff options
author | Suyog Sarda <suyog.sarda@samsung.com> | 2014-10-07 12:04:07 +0000 |
---|---|---|
committer | Suyog Sarda <suyog.sarda@samsung.com> | 2014-10-07 12:04:07 +0000 |
commit | 65f5ae997c8d84e5f32f2a12388f52093ae2c0b8 (patch) | |
tree | cabec4a3bdb047261a3483ae2c8d543299ed8794 /llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | |
parent | ea205517a953fc1f4ff85f0c72d930a143c590cb (diff) | |
download | llvm-65f5ae997c8d84e5f32f2a12388f52093ae2c0b8.zip llvm-65f5ae997c8d84e5f32f2a12388f52093ae2c0b8.tar.gz llvm-65f5ae997c8d84e5f32f2a12388f52093ae2c0b8.tar.bz2 |
Reformat if statement to comply with LLVM standards. NFC.
Differential Revision: http://reviews.llvm.org/D5644
llvm-svn: 219203
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp index 0853ec4..260b7e7 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp @@ -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; } |