Closed Bug 1546439 Opened 1 year ago Closed 1 year ago

Bump Cranelift and allow to print optimized IR from within Spidermonkey

Categories

(Core :: Javascript: WebAssembly, task)

task
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla68
Tracking Status
firefox68 --- fixed

People

(Reporter: bbouvier, Assigned: bbouvier)

References

(Blocks 1 open bug)

Details

Attachments

(3 files)

The print patch allows one to do the following:

RUST_LOG=baldrdash::compile=debug ./dist/bin/js --wasm-compiler=cranelift /tmp/a.js

where a.js is wasm + JS glue code.

Type: defect → enhancement

(Note the Cranelift bump is interesting because this is a perf improvement, and an opportunity to see if AWFY will show it, namely on Embenchen branches sub-test.)

The one optimization introduced by this is the rearrangement of branches to
prefer fallthrough whenever possible, as well as folding branches when
comparing against 0. See also
https://github.com/CraneStation/cranelift/pull/629 for details.

Pushed by bbouvier@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/5acf68edbf59
Bump Cranelift to 538a0662bf90a1daa9921c10f34827ace134abf1; r=lth
https://hg.mozilla.org/integration/autoland/rev/8c14162a3f8e
Allow showing the optimized IR of a Cranelift-compiled function; r=lth
Pushed by bbouvier@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/df4c4083aff8
Bump Cranelift to 538a0662bf90a1daa9921c10f34827ace134abf1; r=lth
https://hg.mozilla.org/integration/mozilla-inbound/rev/5fd6e9df0a2c
Allow showing the optimized IR of a Cranelift-compiled function; r=lth
Flags: needinfo?(bbouvier)
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee: nobody → bbouvier
Blocks: 1610542
Type: enhancement → task
No longer blocks: cranelift
You need to log in before you can comment on or make changes to this bug.