This is an archive of the discontinued LLVM Phabricator instance.

[MBP] Insert target hook to allow targets to decide about MBB movements
Needs ReviewPublic

Authored by andcarminati on May 31 2023, 7:27 AM.

Details

Reviewers
iteratee
Summary

This patch includes a mechanism to give the target the final decision about moving a block up. The rationale behind this is that some targets have hardware low-overhead loop instructions that can benefit from the change, ie, loop instructions that perform better for backward targets. Some targets, like Arm have a custom block reordering pass to improve the layout, but this change simplifies the approach.

Diff Detail

Unit TestsFailed

Event Timeline

andcarminati created this revision.May 31 2023, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 7:27 AM
andcarminati requested review of this revision.May 31 2023, 7:27 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2023, 7:27 AM