This is an archive of the discontinued LLVM Phabricator instance.

[RegisterClassInfo] Invalidate cached information if ignoreCSRForAllocationOrder changes
ClosedPublic

Authored by Srividya-Karumuri on May 27 2022, 2:02 PM.

Details

Summary

Even if CSR list is same between functions, we could have had a different
allocation order if ignoreCSRForAllocationOrder is evaluated differently.
Hence invalidate cached register class information if
ignoreCSRForAllocationOrder changes.

Diff Detail

Event Timeline

Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2022, 2:02 PM
Herald added a subscriber: hiraditya. · View Herald Transcript
Srividya-Karumuri requested review of this revision.May 27 2022, 2:02 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 27 2022, 2:02 PM
qcolombet accepted this revision.Jun 1 2022, 3:20 PM

Nice catch!

(Note: I've spoken with Srividya offline and unfortunately, no in-tree target could expose the issue, so no test case)

This revision is now accepted and ready to land.Jun 1 2022, 3:20 PM
This revision was landed with ongoing or failed builds.Jun 1 2022, 5:16 PM
This revision was automatically updated to reflect the committed changes.