[llvm] [LV][AArch64] Prefer Fixed over Scalable if cost-model is equal (Neoverse V2) (PR #95819)
Sjoerd Meijer via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 26 03:01:30 PDT 2024
================
@@ -4780,7 +4780,10 @@ bool LoopVectorizationPlanner::isMoreProfitable(
// Assume vscale may be larger than 1 (or the value being tuned for),
// so that scalable vectorization is slightly favorable over fixed-width
// vectorization.
- bool PreferScalable = A.Width.isScalable() && !B.Width.isScalable();
+ bool PreferScalable = false;
+ if (!TTI.preferFixedIfEqualToScalable())
+ PreferScalable = A.Width.isScalable() && !B.Width.isScalable();
----------------
sjoerdmeijer wrote:
I have reverted back to my initial implementation, because your suggestion is having a wider impact that I would like to look at in a follow up because I do agree it would make sense.
https://github.com/llvm/llvm-project/pull/95819
More information about the llvm-commits
mailing list