Skip to content

Commit 1faff7f

Browse files
committed
Remove unnecessary code reordering
1 parent 58f703e commit 1faff7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/lib/Target/AMDGPU/SIISelLowering.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13521,13 +13521,13 @@ SDValue SITargetLowering::performXorCombine(SDNode *N,
1352113521
if (SDValue RV = reassociateScalarOps(N, DCI.DAG))
1352213522
return RV;
1352313523

13524-
SelectionDAG &DAG = DCI.DAG;
13525-
EVT VT = N->getValueType(0);
1352613524
SDValue LHS = N->getOperand(0);
1352713525
SDValue RHS = N->getOperand(1);
1352813526

1352913527
const ConstantSDNode *CRHS = isConstOrConstSplat(RHS);
13528+
SelectionDAG &DAG = DCI.DAG;
1353013529

13530+
EVT VT = N->getValueType(0);
1353113531
if (CRHS && VT == MVT::i64) {
1353213532
if (SDValue Split =
1353313533
splitBinaryBitConstantOp(DCI, SDLoc(N), ISD::XOR, LHS, CRHS))

0 commit comments

Comments
 (0)