mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-19 04:32:19 +00:00
Reformat if statement to comply with LLVM standards. NFC.
Differential Revision: http://reviews.llvm.org/D5644 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219203 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
1e4680c4b8
commit
7839762a3f
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user