Commit 08039a1
[RISCV] Narrow indices of fixed vector gather/scatter nodes
Doing so allows the use of smaller constants overall, and may allow (for some small vector constants) avoiding the constant pool entirely. This can result in extra VTYPE toggles if we get unlucky.
This was reviewed under PR llvm#66405.1 parent 73e12af commit 08039a1
File tree
2 files changed
+37
-14
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+37
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11633 | 11633 | | |
11634 | 11634 | | |
11635 | 11635 | | |
11636 | | - | |
11637 | | - | |
11638 | | - | |
11639 | | - | |
| 11636 | + | |
| 11637 | + | |
11640 | 11638 | | |
11641 | 11639 | | |
11642 | 11640 | | |
11643 | 11641 | | |
11644 | | - | |
| 11642 | + | |
| 11643 | + | |
| 11644 | + | |
| 11645 | + | |
| 11646 | + | |
| 11647 | + | |
| 11648 | + | |
| 11649 | + | |
| 11650 | + | |
| 11651 | + | |
| 11652 | + | |
| 11653 | + | |
| 11654 | + | |
| 11655 | + | |
| 11656 | + | |
| 11657 | + | |
| 11658 | + | |
| 11659 | + | |
| 11660 | + | |
| 11661 | + | |
| 11662 | + | |
| 11663 | + | |
| 11664 | + | |
| 11665 | + | |
| 11666 | + | |
| 11667 | + | |
| 11668 | + | |
11645 | 11669 | | |
11646 | 11670 | | |
11647 | 11671 | | |
| |||
11656 | 11680 | | |
11657 | 11681 | | |
11658 | 11682 | | |
11659 | | - | |
11660 | 11683 | | |
11661 | 11684 | | |
11662 | 11685 | | |
| |||
Lines changed: 8 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13027 | 13027 | | |
13028 | 13028 | | |
13029 | 13029 | | |
13030 | | - | |
13031 | | - | |
| 13030 | + | |
| 13031 | + | |
13032 | 13032 | | |
13033 | 13033 | | |
13034 | 13034 | | |
13035 | 13035 | | |
13036 | 13036 | | |
13037 | 13037 | | |
13038 | 13038 | | |
13039 | | - | |
13040 | | - | |
| 13039 | + | |
| 13040 | + | |
13041 | 13041 | | |
13042 | 13042 | | |
13043 | 13043 | | |
| |||
13144 | 13144 | | |
13145 | 13145 | | |
13146 | 13146 | | |
13147 | | - | |
13148 | | - | |
| 13147 | + | |
| 13148 | + | |
13149 | 13149 | | |
13150 | 13150 | | |
13151 | 13151 | | |
13152 | 13152 | | |
13153 | 13153 | | |
13154 | 13154 | | |
13155 | 13155 | | |
13156 | | - | |
13157 | | - | |
| 13156 | + | |
| 13157 | + | |
13158 | 13158 | | |
13159 | 13159 | | |
13160 | 13160 | | |
| |||
0 commit comments