Skip to content

Commit 0d37e5c

Browse files
committed
[RISCV] Remove redundant TSFlags parameter in RISCVInsertVSETVLI. NFC
1 parent 5bec47c commit 0d37e5c

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -908,8 +908,7 @@ class RISCVInsertVSETVLI : public MachineFunctionPass {
908908
void coalesceVSETVLIs(MachineBasicBlock &MBB) const;
909909

910910
VSETVLIInfo getInfoForVSETVLI(const MachineInstr &MI) const;
911-
VSETVLIInfo computeInfoForInstr(const MachineInstr &MI,
912-
uint64_t TSFlags) const;
911+
VSETVLIInfo computeInfoForInstr(const MachineInstr &MI) const;
913912
};
914913

915914
} // end anonymous namespace
@@ -957,9 +956,10 @@ static unsigned computeVLMAX(unsigned VLEN, unsigned SEW,
957956
return VLEN/SEW;
958957
}
959958

960-
VSETVLIInfo RISCVInsertVSETVLI::computeInfoForInstr(const MachineInstr &MI,
961-
uint64_t TSFlags) const {
959+
VSETVLIInfo
960+
RISCVInsertVSETVLI::computeInfoForInstr(const MachineInstr &MI) const {
962961
VSETVLIInfo InstrInfo;
962+
const uint64_t TSFlags = MI.getDesc().TSFlags;
963963

964964
bool TailAgnostic = true;
965965
bool MaskAgnostic = true;
@@ -1198,13 +1198,12 @@ static VSETVLIInfo adjustIncoming(VSETVLIInfo PrevInfo, VSETVLIInfo NewInfo,
11981198
// legal for MI, but may not be the state requested by MI.
11991199
void RISCVInsertVSETVLI::transferBefore(VSETVLIInfo &Info,
12001200
const MachineInstr &MI) const {
1201-
uint64_t TSFlags = MI.getDesc().TSFlags;
1202-
if (!RISCVII::hasSEWOp(TSFlags))
1201+
if (!RISCVII::hasSEWOp(MI.getDesc().TSFlags))
12031202
return;
12041203

12051204
DemandedFields Demanded = getDemanded(MI, ST);
12061205

1207-
const VSETVLIInfo NewInfo = computeInfoForInstr(MI, TSFlags);
1206+
const VSETVLIInfo NewInfo = computeInfoForInstr(MI);
12081207
assert(NewInfo.isValid() && !NewInfo.isUnknown());
12091208
if (Info.isValid() && !needVSETVLI(Demanded, NewInfo, Info))
12101209
return;

0 commit comments

Comments
 (0)