Commit 8eb4ada
authored
[RISCV][TTI] Discount slide cost if ri.vinsert/ri.vextract are available (#142036)
If we have the ri.vinsert/vextract instructions from xrivosvisni, we can
do an element insert or extract without needing a vslide or a vector
temporary register. Adjust the TTI cost to reflect this.1 parent 443cdd0 commit 8eb4ada
File tree
3 files changed
+598
-1
lines changed- llvm
- lib/Target/RISCV
- test/Analysis/CostModel/RISCV
3 files changed
+598
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2297 | 2297 | | |
2298 | 2298 | | |
2299 | 2299 | | |
2300 | | - | |
2301 | 2300 | | |
| 2301 | + | |
2302 | 2302 | | |
| 2303 | + | |
| 2304 | + | |
| 2305 | + | |
2303 | 2306 | | |
2304 | 2307 | | |
2305 | 2308 | | |
| |||
0 commit comments