Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x64: Improve lowering for conditional traps #9575

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

alexcrichton
Copy link
Member

This commit improves the lowering rules on x64 for conditional traps (e.g. trapz and trapnz) to include a special-case with icmp which enables removing some extra instructions by materializing a comparison result into a register.

This commit improves the lowering rules on x64 for conditional traps
(e.g. `trapz` and `trapnz`) to include a special-case with `icmp` which
enables removing some extra instructions by materializing a comparison
result into a register.
@alexcrichton alexcrichton requested review from a team as code owners November 6, 2024 19:33
@alexcrichton alexcrichton requested review from fitzgen and removed request for a team November 6, 2024 19:33
@github-actions github-actions bot added cranelift Issues related to the Cranelift code generator cranelift:area:x64 Issues related to x64 codegen labels Nov 6, 2024
Copy link
Member

@fitzgen fitzgen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice catch!

@fitzgen fitzgen added this pull request to the merge queue Nov 6, 2024
Merged via the queue into bytecodealliance:main with commit f2cf2df Nov 6, 2024
52 checks passed
@alexcrichton alexcrichton deleted the x64-conditional-traps branch November 6, 2024 23:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cranelift:area:x64 Issues related to x64 codegen cranelift Issues related to the Cranelift code generator
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants