Skip to content

Commit a3d3c29

Browse files
committed
[RISCV][NFC] Remove a duplicate shadowed variable
1 parent d50476b commit a3d3c29

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelLowering.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16518,14 +16518,12 @@ static SDValue expandMul(SDNode *N, SelectionDAG &DAG,
1651816518
// We're adding additional uses of X here, and in principle, we should be freezing
1651916519
// X before doing so. However, adding freeze here causes real regressions, and no
1652016520
// other target properly freezes X in these cases either.
16521-
SDValue X = N->getOperand(0);
16522-
1652316521
if (Subtarget.hasShlAdd(3)) {
16522+
SDValue X = N->getOperand(0);
1652416523
int Shift;
1652516524
if (int ShXAmount = isShifted359(MulAmt, Shift)) {
1652616525
// 3/5/9 * 2^N -> shl (shXadd X, X), N
1652716526
SDLoc DL(N);
16528-
SDValue X = N->getOperand(0);
1652916527
// Put the shift first if we can fold a zext into the shift forming
1653016528
// a slli.uw.
1653116529
if (X.getOpcode() == ISD::AND && isa<ConstantSDNode>(X.getOperand(1)) &&

0 commit comments

Comments
 (0)