aarch64: remove x30 -> lr translation in inline assembly clobbers
Open
Beginner friendly
Nobody has claimed this yet.
A-codegen
A-LLVM
C-cleanup
llvm-fixed-upstream
O-AArch64
S-waiting-on-LLVM
T-compiler
- Dominant language
- Rust
- Stars
- 119k
- Forks
- 16.1k
- PR merge metrics
- PR metrics pending
Description
Codegen currently has this code:
I hit the same issue in Zig and decided to fix it properly in LLVM, so when the fix gets released, this will no longer be needed:
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The workaround is in compiler/rustc_codegen_llvm/src/asm.rs at lines 487-490; first check whether the LLVM change in linked PR 167783 is released and supported by Rust’s current LLVM version. Once it is, remove the aarch64 x30-to-lr translation and verify the compiler’s inline-assembly clobber behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Clearly specified
- Newbie friendliness
- 68/100