Skip to content

Cranelift: opt: faster e-graph controlling type lookup - #15102

Merged
alexcrichton merged 1 commit into
bytecodealliance:mainfrom
avanhatt:isle-ctrl-lookup
Nov 3, 2026
Merged

alexcrichton merged 1 commit into
bytecodealliance:mainfrom
avanhatt:isle-ctrl-lookup

Conversation

@avanhatt

Copy link
Copy Markdown
Member

are-we-fast-yet identified a +0.68% instructions retired compilation regression on Sightglass from #15052.

This PR attempts to gain some cycles back by (1) inlining, and (2) using an existing requires_typevar_operand helper to avoid a more expensive lookup in the common case.

Roughly cuts in half the compile-time cost from #15052 (geomean instructions retired from +0.65% to +0.39% relative to before #15052 on macOS aarch64).

CC @fitzgen

@avanhatt
avanhatt requested a review from a team as a code owner October 31, 2026 04:16
@avanhatt
avanhatt requested review from alexcrichton and removed request for a team October 31, 2026 04:16
@github-actions github-actions Bot added the cranelift Issues related to the Cranelift code generator label Oct 31, 2026
@alexcrichton
alexcrichton requested review from fitzgen and removed request for alexcrichton November 1, 2026 23:14
@fitzgen

fitzgen commented Nov 3, 2026

Copy link
Copy Markdown
Member

Thanks!

@fitzgen
fitzgen added this pull request to the merge queue Nov 3, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 3, 2026
@alexcrichton
alexcrichton added this pull request to the merge queue Nov 3, 2026
Merged via the queue into bytecodealliance:main with commit 16963b7 Nov 3, 2026
53 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cranelift Issues related to the Cranelift code generator

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants