Skip to content

Commit 748a6ad

Browse files
committed
[RISCV] Remove extra insertVSETVLI method. NFC
There's only one user of it, and to remove it we just need to pass along the DebugLoc.
1 parent e77b295 commit 748a6ad

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -903,8 +903,6 @@ class RISCVInsertVSETVLI : public MachineFunctionPass {
903903
const VSETVLIInfo &CurInfo) const;
904904
bool needVSETVLIPHI(const VSETVLIInfo &Require,
905905
const MachineBasicBlock &MBB) const;
906-
void insertVSETVLI(MachineBasicBlock &MBB, MachineInstr &MI,
907-
const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo);
908906
void insertVSETVLI(MachineBasicBlock &MBB,
909907
MachineBasicBlock::iterator InsertPt, DebugLoc DL,
910908
const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo);
@@ -1080,13 +1078,6 @@ RISCVInsertVSETVLI::computeInfoForInstr(const MachineInstr &MI) const {
10801078
return InstrInfo;
10811079
}
10821080

1083-
void RISCVInsertVSETVLI::insertVSETVLI(MachineBasicBlock &MBB, MachineInstr &MI,
1084-
const VSETVLIInfo &Info,
1085-
const VSETVLIInfo &PrevInfo) {
1086-
DebugLoc DL = MI.getDebugLoc();
1087-
insertVSETVLI(MBB, MachineBasicBlock::iterator(&MI), DL, Info, PrevInfo);
1088-
}
1089-
10901081
void RISCVInsertVSETVLI::insertVSETVLI(MachineBasicBlock &MBB,
10911082
MachineBasicBlock::iterator InsertPt, DebugLoc DL,
10921083
const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo) {
@@ -1436,7 +1427,7 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
14361427
// we *do* need to model the state as if it changed as while the
14371428
// register contents are unchanged, the abstract model can change.
14381429
if (!PrefixTransparent || needVSETVLIPHI(CurInfo, MBB))
1439-
insertVSETVLI(MBB, MI, CurInfo, PrevInfo);
1430+
insertVSETVLI(MBB, MI, MI.getDebugLoc(), CurInfo, PrevInfo);
14401431
PrefixTransparent = false;
14411432
}
14421433

0 commit comments

Comments
 (0)