Skip to content

Commit d789ece

Browse files
committed
Fix formatting of xorcombine - how did this regress?
1 parent 09d745a commit d789ece

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13378,16 +13378,19 @@ SDValue SITargetLowering::performXorCombine(SDNode *N,
1337813378
// (v2i32 svelect cc, (xor x, K), (xor y, K)) This enables the xor to be
1337913379
// replaced with source modifiers when the select is lowered to CNDMASK.
1338013380
unsigned Opc = LHS.getOpcode();
13381-
if(((Opc == ISD::VSELECT && VT==MVT::v2i32) || (Opc == ISD::SELECT && VT==MVT::i64)) && CRHS && CRHS->getAPIntValue().isSignMask()) {
13381+
if (((Opc == ISD::VSELECT && VT == MVT::v2i32) ||
13382+
(Opc == ISD::SELECT && VT == MVT::i64)) &&
13383+
CRHS && CRHS->getAPIntValue().isSignMask()) {
1338213384
SDValue CC = LHS->getOperand(0);
1338313385
SDValue TRUE = LHS->getOperand(1);
1338413386
SDValue FALSE = LHS->getOperand(2);
1338513387
SDValue XTrue = DAG.getNode(ISD::XOR, SDLoc(N), VT, TRUE, RHS);
1338613388
SDValue XFalse = DAG.getNode(ISD::XOR, SDLoc(N), VT, FALSE, RHS);
13387-
SDValue XSelect = DAG.getNode(ISD::VSELECT, SDLoc(N), VT, CC, XTrue, XFalse);
13389+
SDValue XSelect =
13390+
DAG.getNode(ISD::VSELECT, SDLoc(N), VT, CC, XTrue, XFalse);
1338813391
return XSelect;
1338913392
}
13390-
13393+
1339113394
// Make sure to apply the 64-bit constant splitting fold before trying to fold
1339213395
// fneg-like xors into 64-bit select.
1339313396
if (LHS.getOpcode() == ISD::SELECT && VT == MVT::i32) {

0 commit comments

Comments
 (0)