Commit 02ad623
authored
[RISCV] Prefer strided store for interleave store with one lane active (#119027)
If we're performing a segment store and all but one of the segments are
undefined, that's equivalent to performing a strided store of the one
active segment.
This is the store side of a905203. As before, this only covers fixed
vectors.1 parent a07e8cd commit 02ad623
File tree
2 files changed
+71
-8
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
2 files changed
+71
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21906 | 21906 | | |
21907 | 21907 | | |
21908 | 21908 | | |
| 21909 | + | |
21909 | 21910 | | |
21910 | 21911 | | |
21911 | 21912 | | |
| |||
21917 | 21918 | | |
21918 | 21919 | | |
21919 | 21920 | | |
| 21921 | + | |
| 21922 | + | |
| 21923 | + | |
| 21924 | + | |
| 21925 | + | |
| 21926 | + | |
| 21927 | + | |
| 21928 | + | |
| 21929 | + | |
| 21930 | + | |
| 21931 | + | |
| 21932 | + | |
| 21933 | + | |
| 21934 | + | |
| 21935 | + | |
| 21936 | + | |
| 21937 | + | |
| 21938 | + | |
| 21939 | + | |
| 21940 | + | |
| 21941 | + | |
| 21942 | + | |
| 21943 | + | |
| 21944 | + | |
| 21945 | + | |
21920 | 21946 | | |
21921 | 21947 | | |
21922 | 21948 | | |
21923 | 21949 | | |
21924 | | - | |
21925 | 21950 | | |
21926 | 21951 | | |
21927 | 21952 | | |
| |||
Lines changed: 45 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1285 | 1285 | | |
1286 | 1286 | | |
1287 | 1287 | | |
1288 | | - | |
1289 | | - | |
1290 | | - | |
| 1288 | + | |
| 1289 | + | |
1291 | 1290 | | |
| 1291 | + | |
1292 | 1292 | | |
1293 | | - | |
1294 | | - | |
1295 | | - | |
1296 | | - | |
| 1293 | + | |
1297 | 1294 | | |
1298 | 1295 | | |
1299 | 1296 | | |
1300 | 1297 | | |
1301 | 1298 | | |
| 1299 | + | |
| 1300 | + | |
| 1301 | + | |
| 1302 | + | |
| 1303 | + | |
| 1304 | + | |
| 1305 | + | |
| 1306 | + | |
| 1307 | + | |
| 1308 | + | |
| 1309 | + | |
| 1310 | + | |
| 1311 | + | |
| 1312 | + | |
| 1313 | + | |
| 1314 | + | |
| 1315 | + | |
| 1316 | + | |
| 1317 | + | |
| 1318 | + | |
| 1319 | + | |
| 1320 | + | |
| 1321 | + | |
| 1322 | + | |
| 1323 | + | |
| 1324 | + | |
| 1325 | + | |
| 1326 | + | |
| 1327 | + | |
| 1328 | + | |
| 1329 | + | |
| 1330 | + | |
| 1331 | + | |
| 1332 | + | |
| 1333 | + | |
| 1334 | + | |
| 1335 | + | |
| 1336 | + | |
| 1337 | + | |
| 1338 | + | |
| 1339 | + | |
0 commit comments