Commit b047a0e
authored
[AArch64][SVE] Upgrade PTRUE patterns to ALL when they match vector length. (#172993)
When the number of active elements of a PTRUE pattern matches the
scalable vector length, we can upgrade the pattern to ALL. This enables
CSE with similar PTRUEs as well as other simplifications.
There was similar logic in `getPredicateForFixedLengthVector`, which
I've removed as it should no longer be needed with this change.
This change should also make the VLS matching in `isAllActivePredicate`
redundant, which I've also removed.1 parent 45fefff commit b047a0e
File tree
5 files changed
+18
-31
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
5 files changed
+18
-31
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5894 | 5894 | | |
5895 | 5895 | | |
5896 | 5896 | | |
| 5897 | + | |
| 5898 | + | |
| 5899 | + | |
| 5900 | + | |
| 5901 | + | |
| 5902 | + | |
| 5903 | + | |
| 5904 | + | |
| 5905 | + | |
| 5906 | + | |
| 5907 | + | |
5897 | 5908 | | |
5898 | 5909 | | |
5899 | 5910 | | |
| |||
15336 | 15347 | | |
15337 | 15348 | | |
15338 | 15349 | | |
15339 | | - | |
15340 | | - | |
15341 | | - | |
15342 | | - | |
15343 | | - | |
15344 | | - | |
15345 | | - | |
15346 | | - | |
15347 | | - | |
15348 | | - | |
15349 | | - | |
15350 | | - | |
15351 | | - | |
15352 | | - | |
15353 | 15350 | | |
15354 | 15351 | | |
15355 | 15352 | | |
| |||
30337 | 30334 | | |
30338 | 30335 | | |
30339 | 30336 | | |
30340 | | - | |
30341 | | - | |
30342 | | - | |
30343 | | - | |
30344 | | - | |
30345 | | - | |
30346 | | - | |
30347 | | - | |
30348 | | - | |
30349 | | - | |
30350 | 30337 | | |
30351 | 30338 | | |
30352 | 30339 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
453 | 453 | | |
454 | 454 | | |
455 | 455 | | |
456 | | - | |
| 456 | + | |
457 | 457 | | |
458 | 458 | | |
459 | 459 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
208 | 208 | | |
209 | 209 | | |
210 | 210 | | |
211 | | - | |
| 211 | + | |
212 | 212 | | |
213 | 213 | | |
214 | 214 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
563 | 563 | | |
564 | 564 | | |
565 | 565 | | |
566 | | - | |
| 566 | + | |
567 | 567 | | |
568 | 568 | | |
569 | 569 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
| 113 | + | |
114 | 114 | | |
115 | 115 | | |
116 | 116 | | |
| |||
245 | 245 | | |
246 | 246 | | |
247 | 247 | | |
248 | | - | |
| 248 | + | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
| |||
370 | 370 | | |
371 | 371 | | |
372 | 372 | | |
373 | | - | |
| 373 | + | |
374 | 374 | | |
375 | 375 | | |
376 | 376 | | |
| |||
504 | 504 | | |
505 | 505 | | |
506 | 506 | | |
507 | | - | |
| 507 | + | |
508 | 508 | | |
509 | 509 | | |
510 | 510 | | |
| |||
0 commit comments