aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2023-04-12 17:42:15 -0700
committerPhilip Reames <listmail@philipreames.com>2023-04-12 17:43:36 -0700
commitb0e0c1e46c8a34c1cb1a43f39d171fefd7296758 (patch)
tree6c2ed30e615595bab2971324f59473e6f94cd3a4 /llvm
parentef38880ce03bc1f1fb3606c5a629151f3d0e975e (diff)
downloadllvm-b0e0c1e46c8a34c1cb1a43f39d171fefd7296758.zip
llvm-b0e0c1e46c8a34c1cb1a43f39d171fefd7296758.tar.gz
llvm-b0e0c1e46c8a34c1cb1a43f39d171fefd7296758.tar.bz2
[RISCV][TTI] Call improveShuffleKindFromMask like all the other backends
No test diff; noticed via inspection.
Diffstat (limited to 'llvm')
-rw-r--r--llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp b/llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
index 3982477..fcd7134 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