[llvm] [LV] Fix MVE regression from #132190 (PR #141736)
David Green via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 2 03:14:57 PDT 2025
davemgreen wrote:
I haven't looked deeply into the details but there were a number of pretty large MVE regressions (and some improvements), only one of which was reported on #132190. MVE doesn't have a lot of registers but can deal with spills/reloads quite efficiently much of the time. Ideally it wouldn't be a strict yes/no but the cost of spilling would be included in the estimated cost of the vector factor.
There is another example in https://godbolt.org/z/Koeo86sYf, but it doesn't require any spilling. You can't really calculate register pressure (linearly) without scheduling the instructions in some way.
MVE doesn't enable maximise bandwidth. Would it be better to just have a target hook for whether regpressure should exclude a VF?
https://github.com/llvm/llvm-project/pull/141736
More information about the llvm-commits
mailing list