Closed Bug 1837683 (wasm-branch-hinting) Opened 1 years ago Closed 7 months ago

Implement the branch-hinting proposal

Categories

(Core :: JavaScript: WebAssembly, task, P3)

task

Tracking

()

RESOLVED FIXED
127 Branch
Tracking Status
firefox127 --- fixed

People

(Reporter: rhunt, Assigned: jpages)

References

(Blocks 2 open bugs, )

Details

Attachments

(3 files, 1 obsolete file)

The branch-hinting proposal adds a new custom section to store 'code hints'. Code hints allow compilers to annotate instructions with non-semantic information like 'branch likely to be taken'.

We currently don't have any way of using this information in baseline or Ion, but we could add support.

Alias: wasm-branch-hinting
Summary: Implement the branch-hints proposal → Implement the branch-hinting proposal
Assignee: nobody → jpages

Patch for encoding/parsing of branch hints in wast:

https://github.com/bytecodealliance/wasm-tools/pull/1394

Attachment #9362440 - Attachment description: WIP: Bug 1837683 - wasm: Parsing of the custom branch hinting section → WIP: Bug 1837683 - wasm: Parsing of the custom branch hinting section.

Depends on D192987

Attachment #9379272 - Attachment description: WIP: Bug 1837683 - Update wast, wasm-smith and wasm-encoder. → Bug 1837683 - Update wast, wasm-smith and wasm-encoder.
Attachment #9362440 - Attachment description: WIP: Bug 1837683 - wasm: Parsing of the custom branch hinting section. → Bug 1837683 - wasm: Parsing of the custom branch hinting section.
Attachment #9362441 - Attachment description: WIP: Bug 1837683 - wasm: First implementation of the branch hinting proposal. → Bug 1837683 - wasm: First implementation of the branch hinting proposal.
Attachment #9379273 - Attachment description: WIP: Bug 1837683 - wasm: test case for branch hinting. → Bug 1837683 - wasm: test case for branch hinting.

As a reference, here is the document describing this proposal: https://github.com/WebAssembly/branch-hinting/blob/main/proposals/branch-hinting/Overview.md

Attachment #9379272 - Attachment is obsolete: true
Pushed by jpages@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/11e1e0ddbd25 wasm: Parsing of the custom branch hinting section. r=rhunt https://hg.mozilla.org/integration/autoland/rev/7ea9f1c02ee7 wasm: First implementation of the branch hinting proposal. r=rhunt https://hg.mozilla.org/integration/autoland/rev/48374469e36a wasm: test case for branch hinting. r=rhunt
Status: NEW → RESOLVED
Closed: 7 months ago
Resolution: --- → FIXED
Target Milestone: --- → 127 Branch
Blocks: 1894123
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: