[llvm] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 11 07:55:25 PDT 2023
================
@@ -757,7 +757,8 @@ class RISCVInsertVSETVLI : public MachineFunctionPass {
bool computeVLVTYPEChanges(const MachineBasicBlock &MBB,
VSETVLIInfo &Info) const;
void computeIncomingVLVTYPE(const MachineBasicBlock &MBB);
- void emitVSETVLIs(MachineBasicBlock &MBB);
+ void emitVSETVLIs(MachineBasicBlock &MBB,
+ SmallVectorImpl<MachineInstr *> &DeadVLInstrs);
----------------
preames wrote:
Dead here is misleading, these are only possibly dead.
Rename to something like DefsWithRemovedUses, or PossiblyDeadInstrs.
https://github.com/llvm/llvm-project/pull/65934
More information about the llvm-commits
mailing list