Remove `call.without.effects` intrinsic
Maintainer antworten meist innerhalb von 1 Tag
@stevenfontanella arbeitet bereits daran.
Seit 17.11.2026.
Bewertung
Dieses Issue wurde noch nicht bewertet.
Beschreibung
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.
- Vorherrschende Sprache
- WebAssembly
- Sterne
- 8.7k
- Forks
- 913
- Ø Merge
- 2 T. 14 Std.
- Gemergte PRs (30 T.)
- 92
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus WebAssembly/binaryen
-
DAE2 crashes on call.without.effects with a non ref.func expressionEvtl. vergeben @stevenfontanella hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
WebAssembly/binaryen#9404 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 88/100
WebAssembly/binaryen#9135 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 Ein halber Tag Anfängerfreundlichkeit 76/100
WebAssembly/binaryen#9018 · 3 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Inlining: --inline-max-combined-binary-size is not enforced when several functions are inlined into one caller in the same iterationEvtl. vergeben @kripken hat das vor 6 Tagen übernommen. Offen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 58/100
WebAssembly/binaryen#9384 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
Add a pass to relax nullabilities of definitionsEvtl. vergeben @stevenfontanella hat das vor 13 Tagen übernommen. Offenenhancement
WebAssembly/binaryen#9352 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag