[PATCH] D125270: [riscv] Remove mutation of prior vsetvli from insertion dataflow

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 24 10:25:41 PDT 2022


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp:484
+  Register AVLReg = MI.getOperand(1).getReg();
+  return DestReg == RISCV::X0 && AVLReg == RISCV::X0;
+}
----------------
Since it's PseudoVSETVLIX0 can we move AVLReg == RISCV::X0 to an assert?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125270/new/

https://reviews.llvm.org/D125270



More information about the llvm-commits mailing list