Commit 1aa5364
committed
[RISCV] Remove RISCVISD::VNSRL_VL and adjust deinterleave lowering to match
Instead of directly lowering to vnsrl_vl and having custom pattern matching
for that case, we can just lower to a (legal) shift and truncate, and let
generic pattern matching produce the vnsrl.
The major motivation for this is that I'm going to reuse this logic to
handle e.g. deinterleave4 w/ i8 result.
The test changes aren't particularly interesting. They're minor code
improvements - I think because we do slightly better with the
insert_subvector patterns, but that's mostly irrelevant.1 parent c6f2d35 commit 1aa5364
File tree
4 files changed
+36
-99
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
4 files changed
+36
-99
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4618 | 4618 | | |
4619 | 4619 | | |
4620 | 4620 | | |
4621 | | - | |
4622 | | - | |
4623 | | - | |
4624 | | - | |
4625 | | - | |
4626 | | - | |
4627 | | - | |
4628 | | - | |
4629 | | - | |
4630 | | - | |
4631 | | - | |
4632 | | - | |
4633 | | - | |
4634 | | - | |
4635 | | - | |
4636 | | - | |
| 4621 | + | |
| 4622 | + | |
| 4623 | + | |
| 4624 | + | |
| 4625 | + | |
| 4626 | + | |
| 4627 | + | |
| 4628 | + | |
4637 | 4629 | | |
4638 | 4630 | | |
4639 | | - | |
4640 | | - | |
4641 | 4631 | | |
4642 | 4632 | | |
4643 | | - | |
4644 | | - | |
4645 | | - | |
4646 | | - | |
| 4633 | + | |
| 4634 | + | |
| 4635 | + | |
| 4636 | + | |
4647 | 4637 | | |
4648 | | - | |
4649 | | - | |
| 4638 | + | |
4650 | 4639 | | |
4651 | 4640 | | |
4652 | 4641 | | |
4653 | 4642 | | |
4654 | | - | |
4655 | | - | |
4656 | | - | |
4657 | | - | |
4658 | | - | |
4659 | | - | |
4660 | | - | |
4661 | | - | |
4662 | | - | |
4663 | | - | |
4664 | | - | |
4665 | | - | |
| 4643 | + | |
| 4644 | + | |
| 4645 | + | |
| 4646 | + | |
4666 | 4647 | | |
4667 | 4648 | | |
4668 | 4649 | | |
| |||
5356 | 5337 | | |
5357 | 5338 | | |
5358 | 5339 | | |
5359 | | - | |
| 5340 | + | |
5360 | 5341 | | |
5361 | 5342 | | |
5362 | 5343 | | |
| |||
6258 | 6239 | | |
6259 | 6240 | | |
6260 | 6241 | | |
6261 | | - | |
| 6242 | + | |
6262 | 6243 | | |
6263 | 6244 | | |
6264 | 6245 | | |
| |||
6284 | 6265 | | |
6285 | 6266 | | |
6286 | 6267 | | |
6287 | | - | |
| 6268 | + | |
6288 | 6269 | | |
6289 | 6270 | | |
6290 | 6271 | | |
| |||
10763 | 10744 | | |
10764 | 10745 | | |
10765 | 10746 | | |
10766 | | - | |
10767 | | - | |
10768 | | - | |
10769 | | - | |
| 10747 | + | |
| 10748 | + | |
10770 | 10749 | | |
10771 | 10750 | | |
10772 | 10751 | | |
| |||
20494 | 20473 | | |
20495 | 20474 | | |
20496 | 20475 | | |
20497 | | - | |
20498 | 20476 | | |
20499 | 20477 | | |
20500 | 20478 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
369 | 369 | | |
370 | 370 | | |
371 | 371 | | |
372 | | - | |
373 | | - | |
374 | | - | |
375 | | - | |
376 | 372 | | |
377 | 373 | | |
378 | 374 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
459 | 459 | | |
460 | 460 | | |
461 | 461 | | |
462 | | - | |
463 | | - | |
464 | | - | |
465 | | - | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | 462 | | |
474 | 463 | | |
475 | 464 | | |
| |||
885 | 874 | | |
886 | 875 | | |
887 | 876 | | |
888 | | - | |
889 | | - | |
890 | | - | |
891 | | - | |
892 | | - | |
893 | | - | |
894 | | - | |
895 | | - | |
896 | | - | |
897 | | - | |
898 | | - | |
899 | | - | |
900 | | - | |
901 | | - | |
902 | | - | |
903 | | - | |
904 | | - | |
905 | | - | |
906 | | - | |
907 | | - | |
908 | | - | |
909 | | - | |
910 | | - | |
911 | 877 | | |
912 | 878 | | |
913 | 879 | | |
| |||
2166 | 2132 | | |
2167 | 2133 | | |
2168 | 2134 | | |
2169 | | - | |
2170 | | - | |
2171 | 2135 | | |
2172 | 2136 | | |
2173 | 2137 | | |
| |||
Lines changed: 14 additions & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | 100 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 101 | + | |
| 102 | + | |
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
111 | 111 | | |
112 | | - | |
113 | | - | |
| 112 | + | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | 118 | | |
122 | | - | |
123 | 119 | | |
124 | 120 | | |
125 | 121 | | |
126 | | - | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
127 | 125 | | |
128 | 126 | | |
129 | 127 | | |
130 | 128 | | |
131 | 129 | | |
132 | 130 | | |
133 | 131 | | |
134 | | - | |
| 132 | + | |
| 133 | + | |
135 | 134 | | |
136 | 135 | | |
137 | 136 | | |
| |||
0 commit comments