This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Duplicate inherited heuristic from base scheduler
ClosedPublic

Authored by qiucf on Jan 11 2021, 7:19 PM.

Details

Summary

PowerPC has its custom scheduler heuristic. It calls parent classes' tryCandidate in override version, but the function returns void, so this way doesn't actually help.

This patch duplicates code from base scheduler into PPC machine scheduler class, which does what we wanted. And this should make D86684 an NFC.

Diff Detail

Event Timeline

qiucf created this revision.Jan 11 2021, 7:19 PM
qiucf requested review of this revision.Jan 11 2021, 7:19 PM
Herald added a project: Restricted Project. · View Herald TranscriptJan 11 2021, 7:19 PM

This is the same as what I want to do in D86681. As D86684 is still pending, it makes sense to split from it now.

This revision is now accepted and ready to land.Jan 20 2021, 12:21 AM
This revision was automatically updated to reflect the committed changes.