Skip to content

Fix bug in wasm2c's tail-call optimization code generation - #2420

Merged
sbc100 merged 3 commits into
WebAssembly:mainfrom
squk:wasm2c-tail-call-bug
May 14, 2024
Merged

sbc100 merged 3 commits into
WebAssembly:mainfrom
squk:wasm2c-tail-call-bug

Conversation

@squk

@squk squk commented May 14, 2024

Copy link
Copy Markdown
Contributor

No description provided.

@sbc100 sbc100 left a comment

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.

I guess that means we don't have any test coverage for this? @keithw does that make sense? Is it hard to write tests for this?

@squk

squk commented May 14, 2024 •

Copy link
Copy Markdown
Contributor Author

@sbc100 I updated the failing test case. But it looks like we should also have test cases to ensure the golden files can compile as well, which would've prevented this.

@sbc100

sbc100 commented May 14, 2024

Copy link
Copy Markdown
Member

@sbc100 I updated the failing test case. But it looks like we should also have test cases to ensure the golden files can compile as well, which would've prevented this.

Indeed, no need to block this change on that though.

@sbc100
sbc100 enabled auto-merge (squash) May 14, 2024 15:55
@sbc100
sbc100 merged commit d1e54a8 into WebAssembly:main May 14, 2024
@keithw

keithw commented May 16, 2024

Copy link
Copy Markdown
Member

Hmm, I realize this means there are zero upstream tail-call tests that use imports at all, much less attempt to tail-call them. There probably should be some. :-/

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.

3 participants