summaryrefslogtreecommitdiff
path: root/src/wasm.h
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2023-12-05 12:41:21 -0800
committerGitHub <noreply@github.com>2023-12-05 12:41:21 -0800
commit66277f9b767cb1b45ce12b77109c2538b6cb9c12 (patch)
tree31dc89d2894fdd8805ba6b1e8db11aa3b6703555 /src/wasm.h
parent42cddbf88ebe74d17490e2dd13826e6da9104b15 (diff)
downloadbinaryen-66277f9b767cb1b45ce12b77109c2538b6cb9c12.tar.gz
binaryen-66277f9b767cb1b45ce12b77109c2538b6cb9c12.tar.bz2
binaryen-66277f9b767cb1b45ce12b77109c2538b6cb9c12.zip
Inlining: Inline trivial calls (#6143)
A trivial call is something like a function that just calls another immediately, function foo(x, y) { return bar(y, 15); } We can inline those and expect to benefit in most cases, though we might increase code size slightly. Hence it makes sense to inline such cases, even though in general we are careful and do not inline functions with calls in them; a "trampoline" like that likely has most of the work in the call itself, which we can avoid by inlining. Suggested based on findings in Java.
Diffstat (limited to 'src/wasm.h')
0 files changed, 0 insertions, 0 deletions