Page MenuHomePhabricator

[WebAssembly] Trapping fptoint builtins and intrinsics

Authored by tlively on Oct 11 2019, 6:32 PM.



The WebAssembly backend lowers fptoint instructions to a code sequence
that checks for overflow to avoid traps because fptoint is supposed to
be speculatable. These new builtins and intrinsics give users a way to
depend on the trapping semantics of the underlying instructions and
avoid the extra code generated normally.

Patch by coffee and tlively.

Event Timeline

tlively created this revision.Oct 11 2019, 6:32 PM
Herald added projects: Restricted Project, Restricted Project. · View Herald TranscriptOct 11 2019, 6:32 PM
aheejin accepted this revision.Oct 14 2019, 3:23 PM
This revision is now accepted and ready to land.Oct 14 2019, 3:23 PM
This revision was automatically updated to reflect the committed changes.