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

Update IRBuilder to visit control flow correctly #6124

Merged
merged 3 commits into from
Nov 16, 2023
Merged

Conversation

tlively
Copy link
Member

@tlively tlively commented Nov 16, 2023

Besides If, no control flow structure consumes values from the stack. Fix a
bug in IRBuilder that was causing it to pop control flow children. Also fix a
follow on bug in outlining where it did not make the If condition available on
the stack when starting to visit an If. This required making push() part of
the public API of IRBuilder.

As a drive-by, also add helpful debug logging to IRBuilder.

@tlively tlively requested a review from ashleynh November 16, 2023 04:38
@tlively
Copy link
Member Author

tlively commented Nov 16, 2023

Current dependencies on/for this PR:

This stack of pull requests is managed by Graphite.

tlively and others added 3 commits November 15, 2023 21:01
Besides `If`, no control flow structure consumes values from the stack.
@tlively tlively force-pushed the ir-builder-control-flow branch from db1bbaf to a44f83a Compare November 16, 2023 05:06
@tlively tlively merged commit 5241d87 into main Nov 16, 2023
21 of 27 checks passed
@tlively tlively deleted the ir-builder-control-flow branch November 16, 2023 18:56
radekdoulik pushed a commit to dotnet/binaryen that referenced this pull request Jul 12, 2024
Besides If, no control flow structure consumes values from the stack. Fix a
bug in IRBuilder that was causing it to pop control flow children. Also fix a
follow on bug in outlining where it did not make the If condition available on
the stack when starting to visit an If. This required making push() part of
the public API of IRBuilder.

As a drive-by, also add helpful debug logging to IRBuilder.

Co-authored-by: Ashley Nelson <nashley@google.com>
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