[llvm] b0e0c1e - [RISCV][TTI] Call improveShuffleKindFromMask like all the other backends
Philip Reames via llvm-commits
llvm-commits at lists.llvm.org
Wed Apr 12 17:43:52 PDT 2023
Author: Philip Reames
Date: 2023-04-12T17:43:36-07:00
New Revision: b0e0c1e46c8a34c1cb1a43f39d171fefd7296758
URL: https://github.com/llvm/llvm-project/commit/b0e0c1e46c8a34c1cb1a43f39d171fefd7296758
DIFF: https://github.com/llvm/llvm-project/commit/b0e0c1e46c8a34c1cb1a43f39d171fefd7296758.diff
LOG: [RISCV][TTI] Call improveShuffleKindFromMask like all the other backends
No test diff; noticed via inspection.
Added:
Modified:
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 39824773fea10..fcd71340215c5 100644
--- a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
+++ b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
@@ -258,6 +258,8 @@ InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind,
TTI::TargetCostKind CostKind,
int Index, VectorType *SubTp,
ArrayRef<const Value *> Args) {
+ Kind = improveShuffleKindFromMask(Kind, Mask);
+
std::pair<InstructionCost, MVT> LT = getTypeLegalizationCost(Tp);
// First, handle cases where having a fixed length vector enables us to
More information about the llvm-commits
mailing list