[llvm] [RISCV] Fix coalescing vsetvlis when AVL and vl registers are the same (PR #141941)

Min-Yih Hsu via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 3 16:53:01 PDT 2025


================
@@ -1698,13 +1698,24 @@ void RISCVInsertVSETVLI::coalesceVSETVLIs(MachineBasicBlock &MBB) const {
           MI.getOperand(0).setReg(DefReg);
           MI.getOperand(0).setIsDead(false);
 
+          // Move the AVL from MI to NextMI
----------------
mshockwave wrote:

should this be "moving from NextMI to MI"?

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


More information about the llvm-commits mailing list