Commit efd4576
committed
[RISCV][TTI] Model the cost of extractelt when it cannot using vmv + vslide.
This patch implement the cost when the size of the vector need to split
into multiple groups and the index exceed single vector group.
Under this situation, we need the store the vector to stack and load the
target element.
After this patch, the cost of extract element will close to the
generated assembly.1 parent acaa5fa commit efd4576
File tree
2 files changed
+61
-44
lines changed- llvm
- lib/Target/RISCV
- test/Analysis/CostModel/RISCV
2 files changed
+61
-44
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2003 | 2003 | | |
2004 | 2004 | | |
2005 | 2005 | | |
| 2006 | + | |
| 2007 | + | |
| 2008 | + | |
| 2009 | + | |
| 2010 | + | |
| 2011 | + | |
| 2012 | + | |
| 2013 | + | |
| 2014 | + | |
| 2015 | + | |
| 2016 | + | |
| 2017 | + | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
| 2021 | + | |
| 2022 | + | |
2006 | 2023 | | |
2007 | 2024 | | |
2008 | 2025 | | |
| |||
0 commit comments