Closed Bug 1990510 Opened 2 months ago Closed 2 months ago

Add GVN for array bounds checks

Categories

(Core :: JavaScript: WebAssembly, enhancement)

enhancement

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.

Blocks: wasm-gc-perf

Two bounds checks on exactly the same values are obviously redundant and
can be GVN'd.

Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 145 Branch
QA Whiteboard: [qa-triage-done-c146/b145]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: