Skip to content

Move stack object slot back to local block where it is used #24

@0x7CFE

Description

@0x7CFE

Currently object slots are created in the preamble basic block. This is not effective and consumes stack space for all potential objects in all possible branches.

Object slot should be moved back to the origin basic block and it's holder should be updated accordingly: when control flow reaches end of the origin basic block, object holder should be nulled.

This may be achieved using llvm.lifetime.x intrinsics.

P.S.: Object slot was moved to a preamble in commit 1f26550

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions