Skip to content

Avoid V for unbalanced stack if single possible path #3

@ckaestne

Description

@ckaestne

There are several cases where we may avoid using a V for variables storing unbalanced stack entries.
If we split on a variational if statement, it should be sufficient to keep the old plain value, since it is read again directly (possibly on a more narrow context) and cannot have alternative values in the meantime

I think the following condition needs to apply for this to happen: There is only a single path from the beginning of the method to this statement, i.e. no loops in the CFG to come back to this statement.

@chupanw

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions