[llvm] [TTI][RISCV]Improve costs for whole vector reg extract/insert. (PR #80164)
Luke Lau via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 20 19:14:32 PST 2024
================
@@ -326,6 +326,18 @@ InstructionCost RISCVTTIImpl::getShuffleCost(TTI::ShuffleKind Kind,
switch (Kind) {
default:
break;
+ case TTI::SK_InsertSubvector: {
+ auto *FSubTy = dyn_cast<FixedVectorType>(SubTp);
----------------
lukel97 wrote:
Should we use cast instead of dyn_cast here to get the assertion?
https://github.com/llvm/llvm-project/pull/80164
More information about the llvm-commits
mailing list