Skip to content

Remove redundant instructions in Flatten#2524

Merged
aheejin merged 1 commit intoWebAssembly:masterfrom
aheejin:simplify_flatten
Dec 13, 2019
Merged

Remove redundant instructions in Flatten#2524
aheejin merged 1 commit intoWebAssembly:masterfrom
aheejin:simplify_flatten

Conversation

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