[PATCH] D142116: [Cost] Add CostKind to getVectorInstrCost and its related users

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 19 10:04:23 PST 2023


RKSimon added a comment.

Thanks for looking at this, TTI changes are always a slog :)



================
Comment at: llvm/lib/Transforms/Vectorize/LoopVectorize.cpp:3460
+  InstructionCost ScalarizationCost =
+      getScalarizationOverhead(CI, VF, TTI::TCK_RecipThroughput);
 
----------------
(trivial) Pull out the repeated uses of TTI::TCK_RecipThroughput into a common CostKind variable


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D142116



More information about the llvm-commits mailing list