Warp: tweak inlining heuristics
Categories
(Core :: JavaScript Engine: JIT, task, P2)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox82 | --- | fixed |
People
(Reporter: jandem, Assigned: jandem)
References
(Regressed 1 open bug)
Details
Attachments
(8 files)
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review | |
|
47 bytes,
text/x-phabricator-request
|
Details | Review |
I have some patches to improve trial inlining.
| Assignee | ||
Comment 1•5 years ago
|
||
| Assignee | ||
Comment 2•5 years ago
|
||
Depends on D90224
| Assignee | ||
Comment 3•5 years ago
|
||
To prevent getting stuck in Baseline because we can't tier up in trial-inlined
scripts.
Depends on D90225
| Assignee | ||
Comment 4•5 years ago
|
||
This makes inlining more effective because we can inline more before Warp compilation
happens.
Depends on D90226
| Assignee | ||
Comment 5•5 years ago
|
||
Depends on D90227
| Assignee | ||
Comment 6•5 years ago
|
||
To help prevent badness (security, perf, memory usage) in pathological cases.
Depends on D90228
| Assignee | ||
Comment 7•5 years ago
|
||
Later on we could remove the BytecodeLocation/JSOp use too and replace it with a
tag/flag on trial-inliable stubs.
Depends on D90229
| Assignee | ||
Updated•5 years ago
|
| Assignee | ||
Comment 9•5 years ago
|
||
This patch adds an enum class to track the inlining state per fallback stub and
uses it for the following:
- Don't scan CacheIR of stubs we definitely can't inline (will matter more for getters/setters).
- Similarly, optimize the check for trial-inlined stubs in WarpOracle.
- Assert in WarpOracle that we didn't trial-inline a stub the transpiler doesn't support.
- Ensure we never attempt a second trial-inlining at the same location.
Comment 10•5 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/e124e2c9e4ca
https://hg.mozilla.org/mozilla-central/rev/c4379a121a32
https://hg.mozilla.org/mozilla-central/rev/149d67f2d77c
https://hg.mozilla.org/mozilla-central/rev/cfb6ef22174c
https://hg.mozilla.org/mozilla-central/rev/84cc1114fc4f
https://hg.mozilla.org/mozilla-central/rev/f5f7119a80ac
https://hg.mozilla.org/mozilla-central/rev/d8078e1dea25
Comment 11•5 years ago
|
||
| Assignee | ||
Updated•5 years ago
|
Comment 12•5 years ago
|
||
| bugherder | ||
Updated•5 years ago
|
| Assignee | ||
Updated•5 years ago
|
Description
•