This is an archive of the discontinued LLVM Phabricator instance.

[MCA] [RegisterFile] Allow for skipping Defs with RegID of 0 rather than asserting.
ClosedPublic

Authored by holland11 on Jun 16 2021, 7:03 PM.

Details

Summary

This patch will allow developers to remove unwanted instruction Defs (most likely from within a target specific InstrPostProcess) by setting that Def's RegisterID to 0.

I tested it on a few examples and it worked as expected and had no errors.

I have commit access now, so if you (Andrea) want to hold off on committing this, I'll ask Quentin to show me how to commit it myself tomorrow (assuming you don't have any objections).

Diff Detail

Event Timeline

holland11 created this revision.Jun 16 2021, 7:03 PM
holland11 requested review of this revision.Jun 16 2021, 7:03 PM
Herald added a project: Restricted Project. · View Herald TranscriptJun 16 2021, 7:03 PM
holland11 retitled this revision from [MCA] Skipping Defs with RegID of 0 rather than asserting. to [MCA] [RegisterFile] Skipping Defs with RegID of 0 rather than asserting..Jun 16 2021, 7:03 PM
holland11 retitled this revision from [MCA] [RegisterFile] Skipping Defs with RegID of 0 rather than asserting. to [MCA] [RegisterFile] Allow for skipping Defs with RegID of 0 rather than asserting..
andreadb accepted this revision.Jun 17 2021, 2:27 AM

LGTM.

Please go ahead and commit it.
Thanks for working on these patches!

This revision is now accepted and ready to land.Jun 17 2021, 2:27 AM