[llvm] [LV][AArch64] Prefer Fixed over Scalable if cost-model is equal (Neoverse V2) (PR #95819)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 11 06:41:41 PDT 2024


================
@@ -244,6 +244,10 @@ def FeatureExperimentalZeroingPseudos
 def FeatureUseScalarIncVL : SubtargetFeature<"use-scalar-inc-vl",
   "UseScalarIncVL", "true", "Prefer inc/dec over add+cnt">;
 
+def FeatureUseFixedOverScalableIfEqualCost: SubtargetFeature<"use-fixed-over-scalable-equal-cost",
----------------
david-arm wrote:

Perhaps I'm being a bit pedantic here (tell me if I am!), but I think it makes sense to have the flag match feature name, so that the flag should be "use-fixed-over-scalable-if-equal-cost". My thinking is that it's only 3 extra characters in an already long name, and is a bit clearer/consistent. :)

https://github.com/llvm/llvm-project/pull/95819


More information about the llvm-commits mailing list