Commit 08b4b33
committed
[AArch64] Disconnect FeatureUseScalarIncVL from FeatureSVE2.
FeatureUseScalarIncVL is a tuning feature, used to control whether addvl or
add+cnt is used. It was previously added as a dependency for FeatureSVE2, an
architecture feature but this can be seen as a layering violation. The main
disadvantage is that -use-scalar-inc-vl cannot be used without disabling sve2
and all dependant features.
This patch attempt to break that, enabling the feature if SVE2 or SME is
present and the use-scalar-inc-vl is not otherwise specified, but not requiring
a hard dependency between the two. (Unfortunately I had to check if the value
was present in the features string to check that).
It also inverts the meaning of the feature to DontUseScalarIncVL, so that the
default state is to use addvl, hopefully the more sensible default going
forward.1 parent e28d7f7 commit 08b4b33
File tree
4 files changed
+15
-5
lines changed- llvm
- lib/Target/AArch64
- test/CodeGen/AArch64
4 files changed
+15
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | 361 | | |
365 | 362 | | |
366 | | - | |
| 363 | + | |
367 | 364 | | |
368 | 365 | | |
369 | 366 | | |
| |||
403 | 400 | | |
404 | 401 | | |
405 | 402 | | |
406 | | - | |
| 403 | + | |
407 | 404 | | |
408 | 405 | | |
409 | 406 | | |
| |||
797 | 794 | | |
798 | 795 | | |
799 | 796 | | |
| 797 | + | |
| 798 | + | |
| 799 | + | |
800 | 800 | | |
801 | 801 | | |
802 | 802 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
338 | 345 | | |
339 | 346 | | |
340 | 347 | | |
| |||
Lines changed: 2 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
6 | 8 | | |
7 | 9 | | |
8 | 10 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
0 commit comments