[llvm] c669c03 - [TTI] SK_ExtractSubvector - Ensure we use the src / subvector types in the correct order
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 7 05:40:01 PST 2024
Author: Simon Pilgrim
Date: 2024-03-07T13:39:46Z
New Revision: c669c0383cf982bec279f567662cc918576b6f34
URL: https://github.com/llvm/llvm-project/commit/c669c0383cf982bec279f567662cc918576b6f34
DIFF: https://github.com/llvm/llvm-project/commit/c669c0383cf982bec279f567662cc918576b6f34.diff
LOG: [TTI] SK_ExtractSubvector - Ensure we use the src / subvector types in the correct order
Fixes typo in #84156, fixes buildbot assertion (most targets don't seem to care so tricky to create a testcase).
Added:
Modified:
llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Removed:
################################################################################
diff --git a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
index 095c2ff1e58bdb..7f661bb4a1df20 100644
--- a/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
+++ b/llvm/include/llvm/Analysis/TargetTransformInfoImpl.h
@@ -1382,9 +1382,9 @@ class TargetTransformInfoImplCRTPBase : public TargetTransformInfoImplBase {
SmallVector<int, 16> ExtractMask(Mask.size());
std::iota(ExtractMask.begin(), ExtractMask.end(), 0);
- return ShuffleCost + TargetTTI->getShuffleCost(
- TTI::SK_ExtractSubvector, VecTy, ExtractMask,
- CostKind, 0, VecSrcTy, Operands);
+ return ShuffleCost + TargetTTI->getShuffleCost(TTI::SK_ExtractSubvector,
+ VecSrcTy, ExtractMask,
+ CostKind, 0, VecTy);
}
if (Shuffle->isIdentity())
More information about the llvm-commits
mailing list