Skip to content

Mutually Exclusive If/Else Branches Both Allocate Frame Space #174

@0xGeorgii

Description

@0xGeorgii

Arrays in both if and else arms are allocated simultaneously in the function-wide frame. Correct but wasteful. A liveness-aware allocator could overlap exclusive-arm arrays (LLVM does this via StackColoring).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions