elliottt opened PR #5366 from trevor/ssa-aarch64-load-constant
to main
:
As loading constants on aarch64 can take up to 4 instructions, we need to plumb through some additional registers. Rather than pass a fixed list of registers in, pass an allocation function.
This forced a change to
ABIMachineSpec::gen_memcpy
, as it now needed to take an allocator to pass to uses ofgen_constant
. As a result, I removed the fixed temporary arguments and passed an allocator instead.
<!--Please ensure that the following steps are all taken care of before submitting
the PR.
[ ] This has been discussed in issue #..., or if not, please tell us why
here.[ ] A short description of what this does, why it is needed; if the
description becomes long, the matter should probably be discussed in an issue
first.[ ] This PR contains test cases, if meaningful.
- [ ] A reviewer from the core maintainer team has been assigned for this PR.
If you don't know who could review this, please indicate so. The list of
suggested reviewers on the right can help you.Please ensure all communication adheres to the code of conduct.
-->
elliottt submitted PR review.
elliottt created PR review comment:
The two consecutive calls to
load_constant
are what's forcing thealloc_tmp
argument toload_constant
to be a mutable reference.
elliottt updated PR #5366 from trevor/ssa-aarch64-load-constant
to main
.
elliottt requested jameysharp for a review on PR #5366.
elliottt requested fitzgen for a review on PR #5366.
elliottt created PR review comment:
I need to update the implementation in lower/isle.rs before merging this pr.
elliottt submitted PR review.
elliottt updated PR #5366 from trevor/ssa-aarch64-load-constant
to main
.
elliottt updated PR #5366 from trevor/ssa-aarch64-load-constant
to main
.
fitzgen submitted PR review.
elliottt updated PR #5366 from trevor/ssa-aarch64-load-constant
to main
.
elliottt has enabled auto merge for PR #5366.
elliottt merged PR #5366.
Last updated: Dec 23 2024 at 13:07 UTC