[all-commits] [llvm/llvm-project] a67420: [RISCV][TTI] Model the cost of insert/extractelt w...
Elvis Wang via All-commits
all-commits at lists.llvm.org
Wed Dec 11 17:26:41 PST 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: a6742094324d7166b451c749acf81d27a504c47b
https://github.com/llvm/llvm-project/commit/a6742094324d7166b451c749acf81d27a504c47b
Author: Elvis Wang <elvis.wang at sifive.com>
Date: 2024-12-12 (Thu, 12 Dec 2024)
Changed paths:
M llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
M llvm/test/Analysis/CostModel/RISCV/rvv-extractelement.ll
M llvm/test/Analysis/CostModel/RISCV/rvv-insertelement.ll
Log Message:
-----------
[RISCV][TTI] Model the cost of insert/extractelt when the vector split into multiple register group and idx exceed single group. (#118401)
This patch implements the cost when the size of the vector need to split
into multiple groups and the index exceed single vector group.
For extract element, we need to store split vectors to stack and load
the target element.
For insert element, we need to store split vectors to stack and store
the target element and load vectors back.
After this patch, the cost of insert/extract element will close to the
generated assembly.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list