Skip to content

Commit 070ce81

Browse files
committed
[RISCV] Remove unused function argument in RISCVOptWInstrs. NFC
1 parent d851b5c commit 070ce81

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

llvm/lib/Target/RISCV/RISCVOptWInstrs.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -350,8 +350,7 @@ static bool hasAllWUsers(const MachineInstr &OrigMI, const RISCVSubtarget &ST,
350350

351351
// This function returns true if the machine instruction always outputs a value
352352
// where bits 63:32 match bit 31.
353-
static bool isSignExtendingOpW(const MachineInstr &MI,
354-
const MachineRegisterInfo &MRI, unsigned OpNo) {
353+
static bool isSignExtendingOpW(const MachineInstr &MI, unsigned OpNo) {
355354
uint64_t TSFlags = MI.getDesc().TSFlags;
356355

357356
// Instructions that can be determined from opcode are marked in tablegen.
@@ -426,7 +425,7 @@ static bool isSignExtendedW(Register SrcReg, const RISCVSubtarget &ST,
426425
assert(OpNo != -1 && "Couldn't find register");
427426

428427
// If this is a sign extending operation we don't need to look any further.
429-
if (isSignExtendingOpW(*MI, MRI, OpNo))
428+
if (isSignExtendingOpW(*MI, OpNo))
430429
continue;
431430

432431
// Is this an instruction that propagates sign extend?

0 commit comments

Comments
 (0)