[PATCH] D97470: [CostModel] Align the cost model for intrinsics for scalable/fixed-width vectors.

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Feb 28 10:39:03 PST 2021


dmgreen added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:1345
     // intrinsic.
     unsigned ScalarizationCost = std::numeric_limits<unsigned>::max();
+    if (RetVF.isVector() && !RetVF.isScalable()) {
----------------
Should this ScalarizationCost and IntrinsicCostAttributes::ScalarizationCost be converted to InstructionCost too?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D97470



More information about the llvm-commits mailing list