Skip to content

Commit 697f3cb

Browse files
committed
Fix formatting of xorcombine - how did this regress?
1 parent 145264a commit 697f3cb

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
@@ -13373,16 +13373,19 @@ SDValue SITargetLowering::performXorCombine(SDNode *N,
1337313373
// (v2i32 svelect cc, (xor x, K), (xor y, K)) This enables the xor to be
1337413374
// replaced with source modifiers when the select is lowered to CNDMASK.
1337513375
unsigned Opc = LHS.getOpcode();
13376-
if(((Opc == ISD::VSELECT && VT==MVT::v2i32) || (Opc == ISD::SELECT && VT==MVT::i64)) && CRHS && CRHS->getAPIntValue().isSignMask()) {
13376+
if (((Opc == ISD::VSELECT && VT == MVT::v2i32) ||
13377+
(Opc == ISD::SELECT && VT == MVT::i64)) &&
13378+
CRHS && CRHS->getAPIntValue().isSignMask()) {
1337713379
SDValue CC = LHS->getOperand(0);
1337813380
SDValue TRUE = LHS->getOperand(1);
1337913381
SDValue FALSE = LHS->getOperand(2);
1338013382
SDValue XTrue = DAG.getNode(ISD::XOR, SDLoc(N), VT, TRUE, RHS);
1338113383
SDValue XFalse = DAG.getNode(ISD::XOR, SDLoc(N), VT, FALSE, RHS);
13382-
SDValue XSelect = DAG.getNode(ISD::VSELECT, SDLoc(N), VT, CC, XTrue, XFalse);
13384+
SDValue XSelect =
13385+
DAG.getNode(ISD::VSELECT, SDLoc(N), VT, CC, XTrue, XFalse);
1338313386
return XSelect;
1338413387
}
13385-
13388+
1338613389
// Make sure to apply the 64-bit constant splitting fold before trying to fold
1338713390
// fneg-like xors into 64-bit select.
1338813391
if (LHS.getOpcode() == ISD::SELECT && VT == MVT::i32) {

0 commit comments

Comments
 (0)