Closed
Bug 1990510
Opened 2 months ago
Closed 2 months ago
Add GVN for array bounds checks
Categories
(Core :: JavaScript: WebAssembly, enhancement)
Core
JavaScript: WebAssembly
Tracking
()
RESOLVED
FIXED
145 Branch
| Tracking | Status | |
|---|---|---|
| firefox145 | --- | fixed |
People
(Reporter: bvisness, Assigned: bvisness)
References
(Blocks 1 open bug)
Details
Attachments
(1 file)
MWasmBoundsCheck has no congruentTo, which means that despite being totally GVN-able, bounds checks are not being GVN'd. This means, for example, that a load and store at the same index in a GC array will needlessly incur two bounds checks.
| Assignee | ||
Updated•2 months ago
|
Blocks: wasm-gc-perf
| Assignee | ||
Comment 1•2 months ago
|
||
Two bounds checks on exactly the same values are obviously redundant and
can be GVN'd.
Pushed by bvisness@mozilla.com:
https://github.com/mozilla-firefox/firefox/commit/3d0fa76548b7
https://hg.mozilla.org/integration/autoland/rev/27941f0ae914
Add congruentTo for MWasmBoundsCheck. r=rhunt
Comment 3•2 months ago
|
||
| bugherder | ||
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
status-firefox145:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
Updated•1 month ago
|
QA Whiteboard: [qa-triage-done-c146/b145]
You need to log in
before you can comment on or make changes to this bug.
Description
•