Skip to content

Conversation

ivafanas
Copy link
Contributor

If tail block has only single predecessor after tail duplication, TailDuplicator saves PHI instructions with single block input.

MIR after TailDuplicator looks like:

  bb.1:
    %1 = PHI %0, %bb.0
    ...

Fix proposal is to replace PHI instruction with single input by COPY instruction.

Similar to #158265, bug appears only in the scenario of pre-ra partial tail duplication and does not affect in-tree backends.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants