Bump Cranelift and allow to print optimized IR from within Spidermonkey

RESOLVED FIXED in Firefox 68

Status

()

enhancement
RESOLVED FIXED
3 months ago
3 months ago

People

(Reporter: bbouvier, Assigned: bbouvier)

Tracking

(Blocks 1 bug)

unspecified
mozilla68
Points:
---
Dependency tree / graph

Firefox Tracking Flags

(firefox68 fixed)

Details

Attachments

(3 attachments)

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: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla68
Assignee: nobody → bbouvier
You need to log in before you can comment on or make changes to this bug.