Skip to content

Remove redundant instructions in Flatten #2524

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

Merged
merged 1 commit into from
Dec 13, 2019

Conversation

aheejin
Copy link
Member

@aheejin aheejin commented Dec 12, 2019

When the expression type is none, it does not seem to be necessary to
make it a prelude and insert a nop. This also results in unnecessary
blocks that contains an expression with a nop, which can be reduced to
just the expression. This also adds some newlines to improve
readability.

When the expression type is none, it does not seem to be necessary to
make it a prelude and insert a nop. This also results in unnecessary
blocks that contains an expression with a nop, which can be reduced to
just the expression. This also adds some newlines to improve
readability.
@aheejin aheejin requested a review from kripken December 12, 2019 12:09
@aheejin
Copy link
Member Author

aheejin commented Dec 12, 2019

Please turn on 'Hide whitespace changes' when review test results; otherwise they are not really readable.

I started this to remove redundant local copies but removing them also caused some other problems so I ended up with this... :(

Copy link
Member

@kripken kripken left a comment

Choose a reason for hiding this comment

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

Nice!

Please run some fuzzing on this before landing.

@aheejin
Copy link
Member Author

aheejin commented Dec 13, 2019

Passed 10000 iterations on the fuzzer.

@aheejin aheejin merged commit fbce98c into WebAssembly:master Dec 13, 2019
@aheejin aheejin deleted the simplify_flatten branch December 13, 2019 07:02
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