Skip to content

Commit fa66a70

Browse files
committed
[AArch64][SVE][NFC] Added braces on if block
1 parent 39b1af8 commit fa66a70

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,14 +1412,15 @@ static std::optional<Instruction *>
14121412
instCombineSVEAllOrNoActive(InstCombiner &IC, IntrinsicInst &II,
14131413
Intrinsic::ID IID) {
14141414
if (match(II.getOperand(0), m_ZeroInt())) {
1415-
if (II.getIntrinsicID() != IID)
1415+
if (II.getIntrinsicID() != IID) {
14161416
// llvm_ir, pred(0), op1, op2 - Spec says to return op1 when all lanes are
14171417
// inactive for sv[func]_m or sv[func]_z
14181418
return IC.replaceInstUsesWith(II, II.getOperand(1));
1419-
else
1419+
} else {
14201420
// llvm_ir_u, pred(0), op1, op2 - Spec says to return undef when all lanes
14211421
// are inactive for sv[func]_x
14221422
return IC.replaceInstUsesWith(II, UndefValue::get(II.getType()));
1423+
}
14231424
}
14241425
if (II.getIntrinsicID() != IID)
14251426
return instCombineSVEAllActive(II, IID);

0 commit comments

Comments
 (0)