mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-12 15:30:56 +00:00
[InstCombine] Reformat if statements to comply with LLVM Coding Standards.
Patch by Sonam Kumari! Differential Revision: http://reviews.llvm.org/D5643 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219198 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
75046b4891
commit
0ef79aa701
@ -175,8 +175,12 @@ Instruction *InstCombiner::visitMul(BinaryOperator &I) {
|
||||
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user