Commit f82054e
[RISCV] Handle more cases when combining (vfmv.s.f (extract_subvector X, 0)) (llvm#154175)
Previously, we fold `(vfmv.s.f (extract_subvector X, 0))` into X when
X's type is the same as `vfmv.s.f`'s result type. This patch generalizes
it by folding it into insert_subvector when X is narrower and
extract_subvector when X is wider.
Co-authored-by: Craig Topper <[email protected]>1 parent f1e56ac commit f82054e
File tree
2 files changed
+41
-5
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+41
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
20759 | 20759 | | |
20760 | 20760 | | |
20761 | 20761 | | |
20762 | | - | |
20763 | | - | |
| 20762 | + | |
| 20763 | + | |
| 20764 | + | |
20764 | 20765 | | |
20765 | | - | |
20766 | | - | |
20767 | | - | |
| 20766 | + | |
| 20767 | + | |
| 20768 | + | |
| 20769 | + | |
| 20770 | + | |
| 20771 | + | |
| 20772 | + | |
| 20773 | + | |
| 20774 | + | |
| 20775 | + | |
| 20776 | + | |
| 20777 | + | |
20768 | 20778 | | |
20769 | 20779 | | |
20770 | 20780 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
0 commit comments