@@ -903,8 +903,6 @@ class RISCVInsertVSETVLI : public MachineFunctionPass {
903
903
const VSETVLIInfo &CurInfo) const ;
904
904
bool needVSETVLIPHI (const VSETVLIInfo &Require,
905
905
const MachineBasicBlock &MBB) const ;
906
- void insertVSETVLI (MachineBasicBlock &MBB, MachineInstr &MI,
907
- const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo);
908
906
void insertVSETVLI (MachineBasicBlock &MBB,
909
907
MachineBasicBlock::iterator InsertPt, DebugLoc DL,
910
908
const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo);
@@ -1080,13 +1078,6 @@ RISCVInsertVSETVLI::computeInfoForInstr(const MachineInstr &MI) const {
1080
1078
return InstrInfo;
1081
1079
}
1082
1080
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
-
1090
1081
void RISCVInsertVSETVLI::insertVSETVLI (MachineBasicBlock &MBB,
1091
1082
MachineBasicBlock::iterator InsertPt, DebugLoc DL,
1092
1083
const VSETVLIInfo &Info, const VSETVLIInfo &PrevInfo) {
@@ -1436,7 +1427,7 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
1436
1427
// we *do* need to model the state as if it changed as while the
1437
1428
// register contents are unchanged, the abstract model can change.
1438
1429
if (!PrefixTransparent || needVSETVLIPHI (CurInfo, MBB))
1439
- insertVSETVLI (MBB, MI, CurInfo, PrevInfo);
1430
+ insertVSETVLI (MBB, MI, MI. getDebugLoc (), CurInfo, PrevInfo);
1440
1431
PrefixTransparent = false ;
1441
1432
}
1442
1433
0 commit comments