Skip to content

Conversation

@tlively
Copy link
Member

@tlively tlively commented Jul 20, 2021

No description provided.

@tlively tlively requested a review from kripken July 20, 2021 20:25

(module
(memory 10)
(type $ii (func (param i32 i32)))
Copy link
Member

Choose a reason for hiding this comment

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

Where is the output for this file? E.g. the first function $call-me has no CHECKs, nor the second.

Copy link
Member Author

Choose a reason for hiding this comment

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

Not sure why the checks were missing for this file. I just regenerated all these tests now and it looks fine.

)
(func $bar (result i32)
(unreachable)
)
Copy link
Member

Choose a reason for hiding this comment

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

The function $bar is removed by this optimization, but the CHECKs don't make that obvious. Even just the fact that it has no CHECKs isn't quite enough, as the function after it, "export", also has no CHECKs - its CHECKs actually appear after the module.

Could we emit a CHECK that says a function no longer exist?

Separately, adding a $ name for the final function, and not just an export name, would help things like this.

But skip duplicate elimination tests until we can consider better inserting
checks for removed items.
@tlively
Copy link
Member Author

tlively commented Jul 30, 2021

Ok I removed all duplicate elimination tests from this to sidestep the issues with them for now. Once all the straightforward tests are ported we can budget some time to do a good job of porting the rest.

@tlively tlively merged commit 479c63d into WebAssembly:main Jul 30, 2021
@tlively tlively deleted the port-tests-3-d branch July 30, 2021 17:07
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