This is an archive of the discontinued LLVM Phabricator instance.

AArch64: don't try to fold NZCV spill into an operation
AbandonedPublic

Authored by t.p.northover on Jun 24 2022, 3:38 AM.

Details

Reviewers
None
Summary

Only mrs & msr can access the NZCV flags register, so don't try to create any instructions spilling it.

Bit of an ugly test-case I'm afraid, so I decided the best way to limit scope for things to change and invalidate it was going the MIR route.

Diff Detail

Event Timeline

t.p.northover created this revision.Jun 24 2022, 3:38 AM
t.p.northover requested review of this revision.Jun 24 2022, 3:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptJun 24 2022, 3:38 AM
dmgreen added a subscriber: dmgreen.Jul 8 2022, 1:45 AM

Is this related with https://reviews.llvm.org/D127294? Can the NZCV check be pulled out before the if (MI.isFullCopy()) block?

t.p.northover abandoned this revision.Oct 10 2022, 2:55 AM

Yep, basically the same thing. Abandoning this since it's already fixed.