Skip to content

Simplify terminator when destination is known #1782

@xclerc

Description

@xclerc

In some circumstances, we know the destination of
a terminator. So for instance the following:

[mov const, reg] --> [] --[reg==const']--> [block1]
               ... --^ `--[reg!=const']--> [block2]

could be rewritten to:

[mov const, reg] --> [blocki]
... --> [] --[reg==const']--^ [block1]
          `--[reg!=const']--> [block2]

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