This is an archive of the discontinued LLVM Phabricator instance.

[ARM] Fix MOVCC peephole to not use an incorrect register class
ClosedPublic

Authored by john.brawn on Oct 13 2021, 7:30 AM.

Details

Summary

The MOVCC peephole eliminates a MOVCC by making one of its inputs a conditional instruction, but when doing this it should be using both inputs of the MOVCC to decide on the register class to use as otherwise we can get an error when using -verify-machineinstrs.

Diff Detail

Event Timeline

john.brawn created this revision.Oct 13 2021, 7:30 AM
john.brawn requested review of this revision.Oct 13 2021, 7:30 AM
Herald added a project: Restricted Project. · View Herald TranscriptOct 13 2021, 7:30 AM
dmgreen accepted this revision.Oct 14 2021, 12:23 PM

Sounds good to me.

This revision is now accepted and ready to land.Oct 14 2021, 12:23 PM