[PATCH] D91059: [LoopVectorizer] NFCI: Calculate register usage based on TLI.getTypeLegalizationCost.

Sjoerd Meijer via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 9 07:17:01 PST 2020


SjoerdMeijer added inline comments.


================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:297
+  unsigned getRegUsageForType(Type *Ty) {
+    return getTLI()->getTypeLegalizationCost(DL, Ty).first;
+  }
----------------
If it's only about this, perhaps better not to create yet another TTI hook? Perhaps just query `getTypeLegalizationCost` directly in the LV?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D91059



More information about the llvm-commits mailing list