Skip to content

Commit 2d935a9

Browse files
Run clang-format
1 parent 3cb271b commit 2d935a9

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22217,19 +22217,17 @@ static SDValue performExtendCombine(SDNode *N,
2221722217
// any_extend. This means that we can replace this pattern with (rev16
2221822218
// (any_extend ...)). This saves a machine instruction compared to (lsr (rev
2221922219
// ...)), which is what this pattern would otherwise be lowered to.
22220-
// Only apply this optimisation if any_extend in original pattern to i32 or i64,
22221-
// because this type will become the input type to REV16 in the new pattern, so
22222-
// must be a legitimate REV16 input type.
22220+
// Only apply this optimisation if any_extend in original pattern to i32 or
22221+
// i64, because this type will become the input type to REV16 in the new
22222+
// pattern, so must be a legitimate REV16 input type.
2222322223
if (N->getOpcode() == ISD::ANY_EXTEND &&
2222422224
N->getOperand(0).getOpcode() == ISD::BSWAP &&
2222522225
N->getOperand(0).getValueType() == MVT::i16 &&
22226-
(N->getValueType(0) == MVT::i32 ||
22227-
N->getValueType(0) == MVT::i64)) {
22226+
(N->getValueType(0) == MVT::i32 || N->getValueType(0) == MVT::i64)) {
2222822227
SDNode *BswapNode = N->getOperand(0).getNode();
2222922228
SDLoc DL(N);
22230-
SDValue NewAnyExtend =
22231-
DAG.getNode(ISD::ANY_EXTEND, DL, N->getValueType(0),
22232-
BswapNode->getOperand(0));
22229+
SDValue NewAnyExtend = DAG.getNode(ISD::ANY_EXTEND, DL, N->getValueType(0),
22230+
BswapNode->getOperand(0));
2223322231
return DAG.getNode(AArch64ISD::REV16, SDLoc(N), N->getValueType(0),
2223422232
NewAnyExtend);
2223522233
}

0 commit comments

Comments
 (0)