Closed Bug 1951158 Opened 8 months ago Closed 6 months ago

Get wasm ref cast/test source types from MIR

Categories

(Core :: JavaScript: WebAssembly, enhancement, P1)

enhancement

Tracking

()

RESOLVED WONTFIX

People

(Reporter: bvisness, Assigned: bvisness)

References

Details

Attachments

(1 file)

Once we have wasm ref types in MIR, we can get our source types from MIR instead of from wasm validation. This would also allow us to put AliasSet::None on subtype checks, since they would always have correct source type information regardless of where they were ordered in the MIR graph.

Assignee: nobody → bvisness
Blocks: 1949849
Status: NEW → ASSIGNED
See Also: → 1889317
Attachment #9469228 - Attachment description: Bug 1951158: Use ref type from input in cast/test operations. r=rhunt → WIP: Bug 1951158: Use ref type from input in cast/test operations. r=rhunt
Attachment #9469228 - Attachment description: WIP: Bug 1951158: Use ref type from input in cast/test operations. r=rhunt → Bug 1951158: Use ref type from input in cast/test operations. r=rhunt
Severity: -- → N/A
Priority: -- → P1

From my experimentation, it seems that applying this on its own is perhaps not as effective as we would have hoped. Particularly, it seems that a significant number of casts actually get worse when pulling the source type from MIR; in particular, they lose information in cases that use br_on_cast or br_on_null.

It may make sense to leave this alone and focus everything on bug 1949849, which would add dedicated MIR nodes for casting and optimization passes that refine the type information on those nodes. On the other hand, if we can demonstrate an overall win from this patch on its own, we could still go ahead with it in the meantime.

Regardless, the cast codegen change in bug 1934692 has proven more important and largely independent from this work, so I am shuffling the dependencies around to do that first.

Depends on: 1934692
No longer depends on: 1934692
Status: ASSIGNED → RESOLVED
Closed: 6 months ago
Resolution: --- → WONTFIX
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: