[llvm] [RISCV] Eliminate dead li after emitting VSETVLIs (PR #65934)

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 24 11:41:02 PDT 2023


================
@@ -1255,6 +1258,12 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
         MachineOperand &VLOp = MI.getOperand(getVLOpNum(MI));
         if (VLOp.isReg()) {
           // Erase the AVL operand from the instruction.
----------------
topperc wrote:

This comment applies to the `setReg` and `setIsKill` call. Insert your code above it.

https://github.com/llvm/llvm-project/pull/65934


More information about the llvm-commits mailing list