[llvm] [RISCV] Clear vill for whole vector register moves in vsetvli insertion (PR #118283)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 2 11:24:55 PST 2024


================
@@ -195,6 +195,14 @@ static bool hasUndefinedPassthru(const MachineInstr &MI) {
   return UseMO.getReg() == RISCV::NoRegister || UseMO.isUndef();
 }
 
+/// Return true if \p MI is a copy that will be lowered to one or more vmvNr.vs.
+static bool isVectorCopy(const TargetRegisterInfo *TRI,
+                         const MachineInstr &MI) {
+  return MI.isCopy() && MI.getOperand(0).getReg().isPhysical() &&
----------------
preames wrote:

Seems like this is handled.  Thanks for checking.

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


More information about the llvm-commits mailing list