Remove `call.without.effects` intrinsic
維護者通常 1 天內回覆
@stevenfontanella 已經在處理了。
開始於 2026年11月17日。
評估
這個 Issue 還沒有評估資料。
描述
Binaryen exposes a call.without.effects intrinsic that indicates that the underlying function call can be assumed to have no effects and thus can be e.g. removed if its return value isn't demanded. This intrinsic has since been subsumed by the annotations @binaryen.removable.if.unused and @binaryen.idempotent. In addition, call.without.effects has an awkward representation in our IR which has caused some bugs (#8693, #9393, #9404), and requires special handling by several passes, which in many cases aren't interested in the actual effects, but just need extra introspection to find the actual function being called: link (#9393 is an example of this).
We should remove the intrinsic once toolchains aren't making use of it anymore.
call.without.effects doesn't correspond exactly to either of @binaryen.removable.if.unused or @binaryen.idempotent. call.without.effects does imply removable.if.unused, however it does not imply idempotent, because call.without.effects calls may still be generative (i.e. they may allocate), in which case the calls are not idempotent. When migrating, @binaryen.removable.if.unused can be safely inserted but @binaryen.idempotent needs to be considered on a case-by-case basis.
- 主要語言
- WebAssembly
- 星號
- 8.7k
- 分支
- 913
- 平均合併
- 2 天 14 小時
- 30 天內合併 PR
- 92
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
WebAssembly/binaryen 的其他 Issue
-
DAE2 crashes on call.without.effects with a non ref.func expression可能已有人在做 @stevenfontanella 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 72/100
WebAssembly/binaryen#9404 ·
維護者通常 1 天內回覆
-
難度 1/5 1 小時以內 新手友好度 88/100
WebAssembly/binaryen#9135 · 1 則留言 ·
維護者通常 1 天內回覆
-
難度 2/5 半天 新手友好度 76/100
WebAssembly/binaryen#9018 · 3 則留言 ·
維護者通常 1 天內回覆
-
Inlining: --inline-max-combined-binary-size is not enforced when several functions are inlined into one caller in the same iteration可能已有人在做 @kripken 於 6 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 58/100
WebAssembly/binaryen#9384 · 已指派 1 人 ·
維護者通常 1 天內回覆
-
Add a pass to relax nullabilities of definitions可能已有人在做 @stevenfontanella 於 13 天前認領。 未關閉enhancement
WebAssembly/binaryen#9352 · 已指派 1 人 ·
維護者通常 1 天內回覆