Page MenuHomePhabricator

[WebAssembly] Trapping fptoint builtins and intrinsics
ClosedPublic

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

Details

Summary

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.

Diff Detail

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.Mon, Oct 14, 3:23 PM
This revision is now accepted and ready to land.Mon, Oct 14, 3:23 PM
This revision was automatically updated to reflect the committed changes.