This is an archive of the discontinued LLVM Phabricator instance.

[ModuleInliner] Move UseInlinePriority to InlineOrder.cpp (NFC)
ClosedPublic

Authored by kazu on Sep 16 2022, 7:10 PM.

Details

Summary

UseInlinePriority specifies the priority function. This patch
simplifies the code by moving UseInlinePriority closer to the actual
consumer -- the switch statement inside getInlineOrder.

Diff Detail

Event Timeline

kazu created this revision.Sep 16 2022, 7:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 7:10 PM
kazu requested review of this revision.Sep 16 2022, 7:10 PM
Herald added a project: Restricted Project. · View Herald TranscriptSep 16 2022, 7:10 PM
taolq accepted this revision.Sep 17 2022, 6:49 AM

LGTM

This revision is now accepted and ready to land.Sep 17 2022, 6:49 AM
kazu added a comment.Sep 17 2022, 11:41 AM

Thanks for the review Liqiang!

This revision was landed with ongoing or failed builds.Sep 17 2022, 11:41 AM
This revision was automatically updated to reflect the committed changes.