[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
Tue Dec 3 08:04:41 PST 2024


================
@@ -1426,6 +1468,15 @@ void RISCVInsertVSETVLI::emitVSETVLIs(MachineBasicBlock &MBB) {
       PrefixTransparent = false;
     }
 
+    if (isVectorCopy(ST->getRegisterInfo(), MI)) {
+      if (!PrevInfo.isCompatible(DemandedFields::all(), CurInfo, LIS)) {
----------------
preames wrote:

As a followup, we can reduce the number of vsetvli's emitted by integrating this with the needVSETVLIPHI logic below.  Definitely non blocking.  

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


More information about the llvm-commits mailing list