[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:31 PST 2024


================
@@ -1208,6 +1232,17 @@ static VSETVLIInfo adjustIncoming(VSETVLIInfo PrevInfo, VSETVLIInfo NewInfo,
 // legal for MI, but may not be the state requested by MI.
 void RISCVInsertVSETVLI::transferBefore(VSETVLIInfo &Info,
                                         const MachineInstr &MI) const {
+  if (isVectorCopy(ST->getRegisterInfo(), MI) &&
+      (Info.isUnknown() || !Info.isValid() || Info.hasSEWLMULRatioOnly())) {
----------------
preames wrote:

Understood.  

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


More information about the llvm-commits mailing list