Prefer caller-save registers and emit callee-save clobber comments#437
Open
dop-amin wants to merge 1 commit into
Open
Prefer caller-save registers and emit callee-save clobber comments#437dop-amin wants to merge 1 commit into
dop-amin wants to merge 1 commit into
Conversation
* Add `callee_saved_registers()` to Arm v8.1-M/Helium and RISC-V ISA models * Add `config.constraints.prefer_caller_save_registers`: biases allocation toward input registers and away from callee-saved ones via CP-SAT hints and a secondary minimisation objective (never sacrifices stall counts) * Add `config.emit_clobbered_callee_saves_comment` (default True): prepends a comment listing clobbered callee-saved registers to the output * Accumulate clobber set across preamble, kernel, and postamble in `Heuristics.periodic`; store on `Result` * Add four AArch64 naive tests covering the new features including a forced callee-save allocation case and a SW-pipelining path
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
callee_saved_registers()to Arm v8.1-M/Helium and RISC-V ISA modelsconfig.constraints.prefer_caller_save_registers: biases allocation toward input registers and away from callee-saved ones via CP-SAT hints and a secondary minimisation objective (never sacrifices stall counts)config.emit_clobbered_callee_saves_comment(default True): prepends a comment listing clobbered callee-saved registers to the outputHeuristics.periodic; store onResult