Commit 188d5c7
committed
[RISCV] Add a combine to form masked.store from unit strided store
Add a DAG combine to form a masked.store from a masked_strided_store intrinsic
with stride equal to element size. This is the store analogy to PR #65674.
As seen in the tests, this does pickup a few cases that we'd previously missed
due to selection ordering. We match strided stores early without going through
the recently added generic mscatter combines, and thus weren't recognizing the
unit strided store.1 parent 8f8f449 commit 188d5c7
File tree
4 files changed
+22
-8
lines changed- llvm
- lib/Target/RISCV
- test/CodeGen/RISCV/rvv
4 files changed
+22
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14467 | 14467 | | |
14468 | 14468 | | |
14469 | 14469 | | |
| 14470 | + | |
| 14471 | + | |
| 14472 | + | |
| 14473 | + | |
| 14474 | + | |
| 14475 | + | |
| 14476 | + | |
| 14477 | + | |
| 14478 | + | |
| 14479 | + | |
| 14480 | + | |
| 14481 | + | |
| 14482 | + | |
| 14483 | + | |
| 14484 | + | |
| 14485 | + | |
| 14486 | + | |
| 14487 | + | |
14470 | 14488 | | |
14471 | 14489 | | |
14472 | 14490 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11296 | 11296 | | |
11297 | 11297 | | |
11298 | 11298 | | |
11299 | | - | |
11300 | 11299 | | |
11301 | | - | |
| 11300 | + | |
11302 | 11301 | | |
11303 | 11302 | | |
11304 | 11303 | | |
| |||
11311 | 11310 | | |
11312 | 11311 | | |
11313 | 11312 | | |
11314 | | - | |
11315 | 11313 | | |
11316 | | - | |
| 11314 | + | |
11317 | 11315 | | |
11318 | 11316 | | |
11319 | 11317 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
117 | | - | |
118 | | - | |
| 117 | + | |
119 | 118 | | |
120 | 119 | | |
121 | 120 | | |
| |||
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
92 | | - | |
93 | 92 | | |
94 | | - | |
| 93 | + | |
95 | 94 | | |
96 | 95 | | |
97 | 96 | | |
| |||
0 commit comments