This is an archive of the discontinued LLVM Phabricator instance.

Reset NoPHI MachineFunction property in X86CmovConversion
ClosedPublic

Authored by Orlando on Jun 28 2023, 1:15 AM.

Details

Summary

In order to placate the machine-verifier, X86CmovConversion needs to reset the NoPHI property when it inserts a PHI.

Fixes buildbot failure: https://lab.llvm.org/buildbot/#/builders/16/builds/50453

Diff Detail

Event Timeline

Orlando created this revision.Jun 28 2023, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 1:15 AM
Orlando requested review of this revision.Jun 28 2023, 1:15 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 28 2023, 1:15 AM
StephenTozer accepted this revision.EditedJun 28 2023, 1:58 AM
StephenTozer added a subscriber: StephenTozer.

The pass inserts a PHI, so needs to reset the NoPHIs property - makes sense. The property reset could be taken out of the loop and put under a conditional if (MIItBegin != MIItEnd) - I'd leave that as optional though, because I imagine it makes very little difference in practice.

This revision is now accepted and ready to land.Jun 28 2023, 1:58 AM
This revision was automatically updated to reflect the committed changes.

The pass inserts a PHI, so needs to reset the NoPHIs property - makes sense. The property reset could be taken out of the loop and put under a conditional if (MIItBegin != MIItEnd) - I'd leave that as optional though, because I imagine it makes very little difference in practice.

SGTM - done, thanks.