Commit 74acfb2
authored
[AArch64][SVE] Share code across SVE prologue/epilogue implementations (NFCI) (#162253)
This patch refactors the SVE prologue and epilogue to use a common code
path for both the "Default" and "Split" SVE layouts.
This also factors some code into common helpers, such as:
- `partitionSVECS()` (which returns the MI ranges of the PPR/ZPR
callee-saves)
- `getSVEStackFrameSizes()` (which returns the sizes of the PPR/ZPR
locals/callee-saves)
Since most split-SVE layout code is now shared with the default path,
there should be much less code that is only tested when split-SVE is
enabled.1 parent 28b7f66 commit 74acfb2
File tree
3 files changed
+251
-294
lines changed- llvm/lib/Target/AArch64
3 files changed
+251
-294
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
315 | 315 | | |
316 | 316 | | |
317 | 317 | | |
| 318 | + | |
| 319 | + | |
318 | 320 | | |
319 | 321 | | |
320 | 322 | | |
| |||
425 | 427 | | |
426 | 428 | | |
427 | 429 | | |
| 430 | + | |
| 431 | + | |
428 | 432 | | |
429 | 433 | | |
430 | 434 | | |
| |||
0 commit comments