Skip to content

Have a dual for --no-inline that will cause a function to be always inlined (modulo recursive inlining) #7972

Description

@mkustermann

wasm-opt has the --no-inline=<function-name-glob-pattern> argument which one can use to disallow inlining certain functions.

It would be great if we have a similar --prefer-inline=<function-name-glob-pattern> flag that tells binaryen to always inline certain functions irrespective of other flags (e.g. -Os may prevent it from being inlined as it would make size bigger, but do it nonetheless). Basically it would cause force inlining of those methods except in cases that would lead to issues (e.g. infinite recursive inlining)

From looking at wasm-opt --help --verbose it doesn't seem like there's such a flag atm.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions