[PATCH] D113313: [NFC][TTI] Add/extract `getReplicationShuffleCost()` method, deduplicate it's implementations

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Nov 5 14:38:06 PDT 2021


RKSimon added a comment.

Is it due to this being mainly used for interleaved ops that you didn't integrate it into the ShuffleKind enum?



================
Comment at: llvm/include/llvm/CodeGen/BasicTTIImpl.h:1117
+  InstructionCost getReplicationShuffleCost(Type *EltTy, int ReplicationFactor,
+                                            int VF, APInt DemandedSrcElts,
+                                            APInt DemandedReplicatedElts,
----------------
Pass APInt args as const APInt &


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113313



More information about the llvm-commits mailing list