[llvm] [RISCV] Clear vill for whole vector register moves in vsetvli insertion (PR #118283)
Pengcheng Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 3 03:08:42 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)) {
+ insertVSETVLI(MBB, MI, MI.getDebugLoc(), CurInfo, PrevInfo);
----------------
wangpc-pp wrote:
Add a statistics to record how many extra vsetivli we have inserted?
https://github.com/llvm/llvm-project/pull/118283
More information about the llvm-commits
mailing list