[llvm] [CostModel] getInstructionCost - improve estimation of costs for length changing shuffles (PR #84156)
Alexey Bataev via llvm-commits
llvm-commits at lists.llvm.org
Wed Mar 6 05:55:56 PST 2024
================
@@ -1326,28 +1326,29 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
auto *VecSrcTy = cast<VectorType>(Operands[0]->getType());
int NumSubElts, SubIndex;
+ // TODO: move more of this inside improveShuffleKindFromMask.
if (Shuffle->changesLength()) {
+ ArrayRef<int> Mask = Shuffle->getShuffleMask();
+
----------------
alexey-bataev wrote:
Better to make in a separate NFC patch
https://github.com/llvm/llvm-project/pull/84156
More information about the llvm-commits
mailing list