This is an archive of the discontinued LLVM Phabricator instance.

[TableGen] Fix reporting from CodeGenSchedModels::checkCompleteness()
ClosedPublic

Authored by jonpa on Jan 31 2022, 10:01 AM.

Details

Summary

Make the check for a complete SchedModel:s work as expected: report any supported instruction not having scheduler info in a complete SchedModel.

For unclear reasons there was a variable 'HadComleteModel' that caused e.g. new instructions for a new subtarget not to be reported. This variable is now simply removed as all in-tree targets build fine without it.

Diff Detail

Event Timeline

jonpa requested review of this revision.Jan 31 2022, 10:01 AM
jonpa created this revision.
Herald added a project: Restricted Project. · View Herald TranscriptJan 31 2022, 10:01 AM
RKSimon accepted this revision.Jan 31 2022, 1:45 PM
RKSimon added a reviewer: MatzeB.

LGTM - I've added @MatzeB (original coder) as a reviewer but it looks like they aren't dealing with LLVM stuff atm

This revision is now accepted and ready to land.Jan 31 2022, 1:46 PM
This revision was landed with ongoing or failed builds.Feb 1 2022, 9:34 AM
This revision was automatically updated to reflect the committed changes.
MatzeB added a comment.Feb 1 2022, 9:43 AM

I don't remember why I wrote the way this way. Looking at this now the changes make sense to me!

jonpa added a comment.Feb 1 2022, 10:11 AM

I don't remember why I wrote the way this way. Looking at this now the changes make sense to me!

thanks - good to know :-)