[llvm] [LV] Fix cost misaligned when gather/scatter w/ addr is uniform. (PR #157387)

Elvis Wang via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 10 02:49:27 PDT 2025


================
@@ -6905,6 +6905,17 @@ static bool planContainsAdditionalSimplifications(VPlan &Plan,
       if (isa<VPPartialReductionRecipe>(&R))
         return true;
 
+      // The VPlan-based cost model can analyze if recipes are scalar
+      // recursively, but legacy cost model cannot.
----------------
ElvisWang123 wrote:

Ooops, missed that. Fixed, thanks!

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


More information about the llvm-commits mailing list