forked from OSchip/llvm-project
[InstCombine] Reformat if statements to comply with LLVM Coding Standards.
Patch by Sonam Kumari! Differential Revision: http://reviews.llvm.org/D5643 llvm-svn: 219198
This commit is contained in:
parent
941bbec6f4
commit
2bc5cb687b
|
@ -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…
Reference in New Issue