[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 10:24:43 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:
In principal, we should not need the hasSEWLMULRationOnly case because having such a ratio be constant implies that the VTYPE can't be VILL. (I think.) I'm fine with this being a followon change if it ever becomes useful.
https://github.com/llvm/llvm-project/pull/118283
More information about the llvm-commits
mailing list