@@ -22217,19 +22217,17 @@ static SDValue performExtendCombine(SDNode *N,
22217
22217
// any_extend. This means that we can replace this pattern with (rev16
22218
22218
// (any_extend ...)). This saves a machine instruction compared to (lsr (rev
22219
22219
// ...)), 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.
22223
22223
if (N->getOpcode() == ISD::ANY_EXTEND &&
22224
22224
N->getOperand(0).getOpcode() == ISD::BSWAP &&
22225
22225
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)) {
22228
22227
SDNode *BswapNode = N->getOperand(0).getNode();
22229
22228
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));
22233
22231
return DAG.getNode(AArch64ISD::REV16, SDLoc(N), N->getValueType(0),
22234
22232
NewAnyExtend);
22235
22233
}
0 commit comments