Skip to content

Commit

Permalink
[RISCV][TTI] Call improveShuffleKindFromMask like all the other backends
Browse files Browse the repository at this point in the history
No test diff; noticed via inspection.
  • Loading branch information
preames committed Apr 13, 2023
1 parent ef38880 commit b0e0c1e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0e0c1e

Please sign in to comment.