[PATCH] D148174: [SLP]Introduce gather cost estimation function.

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 05:17:29 PDT 2023


RKSimon added inline comments.


================
Comment at: llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp:6897
+      }
+    } else if (!Root && !allConstant(VL) && isSplat(VL)) {
+      // Found the broadcasting of the single scalar, calculate the cost as
----------------
Don't we guarantee !allConstant(VL) in the TCC_Free check at the top?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D148174/new/

https://reviews.llvm.org/D148174



More information about the llvm-commits mailing list