Skip to content

Conversation

@kripken
Copy link
Member

@kripken kripken commented Dec 23, 2025

Pattern B needs to exclude code with returns at some point. It did so by
finding Returns, but ever since tail calls, there are other kinds of returns
as well. Refactor some ReturnUtils code to find all returns, including
return_calls, and use that.

Diff without whitespace is smaller.

ReturnCallersMap findReturnCallers(Module& wasm);

// Information about the returns in a given expression.
struct Info {
Copy link
Member

Choose a reason for hiding this comment

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

Even though this is in the ReturnUtils namespace, I think it would be better to use e.g. ReturnInfo or some other more descriptive name (ReturnPresence? HasReturn?).

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