Commit ef1fafd
committed
[RISCV] Mark subvector extracts from index 0 as cheap
Previously we only marked fixed length vector extracts as cheap, so this extends it to any extract at index 0 which should just be a subreg extract.
This allows extracts of i1 vectors to be considered for DAG combines, but also scalable vectors too.
This causes some slight improvements with large legalized fixed-length vectors, but the underlying motiviation for this is to actually prevent an unprofitable DAG combine on a scalable vector in an upcoming patch.1 parent ffaaace commit ef1fafd
File tree
17 files changed
+5580
-6478
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
17 files changed
+5580
-6478
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2250 | 2250 | | |
2251 | 2251 | | |
2252 | 2252 | | |
| 2253 | + | |
| 2254 | + | |
| 2255 | + | |
| 2256 | + | |
2253 | 2257 | | |
2254 | 2258 | | |
2255 | 2259 | | |
| |||
0 commit comments