Skip to content

[Outlining] Add TryTable#7504

Merged
ashleynh merged 28 commits intomainfrom
try_table
Apr 29, 2025
Merged

[Outlining] Add TryTable#7504
ashleynh merged 28 commits intomainfrom
try_table

Conversation

@ashleynh
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

Base automatically changed from outlining_try to main April 29, 2025 20:41
@ashleynh ashleynh enabled auto-merge (squash) April 29, 2025 20:48
@ashleynh ashleynh merged commit 20e7058 into main Apr 29, 2025
14 checks passed
@ashleynh ashleynh deleted the try_table branch April 29, 2025 21:41
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