Commit a0a904e
authored
[RISCV] Collect shuffle mask for the lane not by createSequentialMask (#129830)
If there are the shuffle mask <1, u, u, u, 2, u, u, u> with factor 4. we
should have the shuffle mask <1, 2> for lane 0 and <u, u> for lane 1,
and so on. Since we use createSequentialMask to create the shuffle mask,
the shuffle mask for lane 1 would be <u, 0>(dervied from <u, u+1>). This
leads to poor code generation.1 parent 6eefadd commit a0a904e
File tree
2 files changed
+10
-8
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+10
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23110 | 23110 | | |
23111 | 23111 | | |
23112 | 23112 | | |
| 23113 | + | |
23113 | 23114 | | |
23114 | 23115 | | |
| 23116 | + | |
| 23117 | + | |
| 23118 | + | |
| 23119 | + | |
23115 | 23120 | | |
23116 | | - | |
23117 | | - | |
| 23121 | + | |
23118 | 23122 | | |
| 23123 | + | |
| 23124 | + | |
23119 | 23125 | | |
23120 | 23126 | | |
23121 | 23127 | | |
| |||
Lines changed: 2 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1394 | 1394 | | |
1395 | 1395 | | |
1396 | 1396 | | |
1397 | | - | |
1398 | 1397 | | |
1399 | 1398 | | |
1400 | 1399 | | |
1401 | 1400 | | |
1402 | | - | |
1403 | | - | |
1404 | | - | |
1405 | | - | |
1406 | | - | |
| 1401 | + | |
| 1402 | + | |
1407 | 1403 | | |
1408 | 1404 | | |
1409 | 1405 | | |
| |||
0 commit comments