Skip to content

[Outlining] Add TryTable #7504

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

Open
wants to merge 6 commits into
base: outlining_try
Choose a base branch
from
Open

[Outlining] Add TryTable #7504

wants to merge 6 commits into from

Conversation

ashleynh
Copy link
Collaborator

@ashleynh ashleynh commented Apr 15, 2025

Supports try_table in the stringify of the module, and filters out try_table outlining sequences.

@ashleynh ashleynh marked this pull request as draft April 15, 2025 22:23
@ashleynh ashleynh changed the title try_table [Outlining] Add TryTable Apr 15, 2025
@ashleynh ashleynh requested a review from tlively April 24, 2025 18:05
@ashleynh ashleynh marked this pull request as ready for review April 24, 2025 18:05
Comment on lines +272 to +273
return Properties::isBranch(curr) || curr->is<Return>() ||
curr->is<TryTable>();
Copy link
Member

Choose a reason for hiding this comment

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

@aheejin, separately from this PR, I think it would make sense for Properties::isBranch() to be true for TryTable expressions. Is that something you've thought about?

;; Tests TryTable instructions are correctly filtered from being outlined.
;; The (drop (i32.const 0)) instructions were added to form an outlineable
;; sequence with the block that contains the try_table.
(module
Copy link
Member

Choose a reason for hiding this comment

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

Looks like we need to run the test update script to get the output here.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

oops, fixed, thanks

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.

2 participants