Skip to content

[Heap2Local2] Support ref.cast and ref.cast_desc_eq - #9410

Open
tlively wants to merge 1 commit into
mainfrom
heap2local2-casts
Open

tlively wants to merge 1 commit into
mainfrom
heap2local2-casts

Conversation

@tlively

@tlively tlively commented Nov 20, 2026

Copy link
Copy Markdown
Member

Track ref.cast and ref.cast_desc_eq instructions as CastSites during origin propagation so casts on candidate allocations propagate exact origins (or Bottom when statically trapping) without escaping their operands, and lower casts on non-escaping allocations in Optimizer::visitRefCast while preserving operand evaluation order and null/descriptor trap semantics.

Track ref.cast and ref.cast_desc_eq instructions as CastSites during origin propagation so casts on candidate allocations propagate exact origins (or Bottom when statically trapping) without escaping their operands, and lower casts on non-escaping allocations in Optimizer::visitRefCast while preserving operand evaluation order and null/descriptor trap semantics.
@tlively
tlively requested a review from kripken November 20, 2026 01:50

This branch has not been deployed

No deployments
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