This is an archive of the discontinued LLVM Phabricator instance.

RegAllocFast: Fix dropping subreg indexes on unassigned subreg defs
ClosedPublic

Authored by arsenm on Mar 3 2023, 9:20 AM.

Details

Summary

This was assuming all register operands were assigned to physical registers.
This should ignore the operands which weren't assigned in this run.

Fixes #61134

Diff Detail

Event Timeline

arsenm created this revision.Mar 3 2023, 9:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2023, 9:20 AM
arsenm requested review of this revision.Mar 3 2023, 9:20 AM
Herald added a project: Restricted Project. · View Herald TranscriptMar 3 2023, 9:20 AM
Herald added a subscriber: wdng. · View Herald Transcript
qcolombet accepted this revision.Apr 4 2023, 7:06 AM

Nice catch!

Just one comment: Could you rename the filename of the added test case with something more explanatory? (E.g., regalloc-fast-dont-drop-subreg-index.mir)

This revision is now accepted and ready to land.Apr 4 2023, 7:06 AM