Skip to content

Regalloc hints - #1439

Open
sarranz wants to merge 1 commit into
mainfrom
regalloc-hint
Open

Regalloc hints#1439
sarranz wants to merge 1 commit into
mainfrom
regalloc-hint

Conversation

@sarranz

@sarranz sarranz commented Apr 17, 2026

Copy link
Copy Markdown
Collaborator

Description

Experimental hints for the register allocator requested by @bgregoir

Checklist

  • Add a changelog entry in changes if the PR is a user-visible change
  • Add one or several tests to compiler/tests if it makes sense, especially if it is a bug fix

@sarranz
sarranz requested a review from bgregoir April 17, 2026 13:23
@sarranz

sarranz commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator Author

I removed the "conflict" annotation. One thing worth noting:

export fn main() -> reg u64 {
    #[force_regalloc=RCX] reg u64 x = 0;
    return x;
}

fails even if the compiler introduces renaming, because the renames inherit the annotations. I don't know if it's a feature or a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant