Skip to content

fastalloc does not support arbitrary numbers of any defs allocating into spillslots #217

Open
@cfallin

Description

@cfallin

After bytecodealliance/wasmtime#10502, a necessary prerequisite for exception handling in Cranelift (and thus Wasmtime), we generate all return-value defs for callsites as defs on the call instruction, with an any constraint. The default (backtracking) allocator is able to allocate defs past the number of registers into spillslots directly. However, it appears that fastalloc cannot do this: it aborts if a def with an any constraint cannot allocate a register.

See this fuzzbug for a reproduction.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions