Commit 806bbab
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 a4c3683 commit 806bbab
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 | |
|---|---|---|---|
| |||
1945 | 1945 | | |
1946 | 1946 | | |
1947 | 1947 | | |
| 1948 | + | |
| 1949 | + | |
| 1950 | + | |
| 1951 | + | |
| 1952 | + | |
| 1953 | + | |
| 1954 | + | |
| 1955 | + | |
| 1956 | + | |
| 1957 | + | |
| 1958 | + | |
| 1959 | + | |
| 1960 | + | |
| 1961 | + | |
| 1962 | + | |
| 1963 | + | |
| 1964 | + | |
1948 | 1965 | | |
1949 | 1966 | | |
1950 | 1967 | | |
| |||
0 commit comments