Closed
Bug 1637946
Opened 4 years ago
Closed 4 years ago
Fold MUnbox with Int32 MBox input
Categories
(Core :: JavaScript Engine: JIT, task, P3)
Core
JavaScript Engine: JIT
Tracking
()
RESOLVED
FIXED
mozilla78
Tracking | Status | |
---|---|---|
firefox78 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
The micro-benchmark below ends up boxing i
and then immediately unboxes it as double. We can easily fix that in MUnbox::foldsTo
and then I get the same JIT code and perf as Ion.
function f() {
var x = 1.1;
for (var i = 0; i < 10000000; i++) {
x = 1.1 + i;
}
return x;
}
var t = dateNow();
f();
print(dateNow() - t);
Assignee | ||
Updated•4 years ago
|
Severity: normal → N/A
Priority: -- → P3
Assignee | ||
Comment 1•4 years ago
|
||
This pattern is very common in MIR transpiled from CacheIR.
Pushed by jdemooij@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/564493b2e3c6 Fold MUnbox(MBox(x), Double) to MToDouble if possible. r=evilpie
Comment 3•4 years ago
|
||
bugherder |
Status: ASSIGNED → RESOLVED
Closed: 4 years ago
status-firefox78:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla78
You need to log in
before you can comment on or make changes to this bug.
Description
•