[llvm] [LoopVectorizer] Only check register pressure for VFs that have been enabled via maxBandwidth (PR #149056)
Nicholas Guy via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 18 01:57:59 PDT 2025
================
@@ -4375,9 +4389,10 @@ VectorizationFactor LoopVectorizationPlanner::selectVectorizationFactor() {
if (VF.isScalar())
continue;
- /// Don't consider the VF if it exceeds the number of registers for the
- /// target.
- if (CM.useMaxBandwidth(VF) && RUs[I].exceedsMaxNumRegs(TTI))
+ /// If the VF was proposed due to MaxBandwidth, don't consider the VF if
+ /// it exceeds the number of registers for the target.
----------------
NickGuy-Arm wrote:
Done, https://github.com/llvm/llvm-project/pull/149478
https://github.com/llvm/llvm-project/pull/149056
More information about the llvm-commits
mailing list