This is an archive of the discontinued LLVM Phabricator instance.

[BOLT] Respect -function-order in lite mode
ClosedPublic

Authored by Amir on Dec 20 2022, 3:04 PM.

Details

Reviewers
rafauler
maksfb
Group Reviewers
Restricted Project
Commits
rG703d94d8f014: [BOLT] Respect -function-order in lite mode
Summary

Process functions listed in -function-order file even in lite mode.

Diff Detail

Event Timeline

Amir created this revision.Dec 20 2022, 3:04 PM
Herald added a reviewer: maksfb. · View Herald Transcript
Herald added a project: Restricted Project. · View Herald Transcript
Amir requested review of this revision.Dec 20 2022, 3:04 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 20 2022, 3:04 PM
maksfb accepted this revision.Dec 20 2022, 3:56 PM
maksfb added inline comments.
bolt/lib/Rewrite/RewriteInstance.cpp
2759

Maybe use StringSet<>?

bolt/test/X86/function-order-lite.s
30–41

What's the purpose of the jumps in the test?

This revision is now accepted and ready to land.Dec 20 2022, 3:56 PM
Amir added inline comments.Dec 20 2022, 5:22 PM
bolt/test/X86/function-order-lite.s
30–41

The test was copied from bolt/test/X86/Inputs/jmpjmp.s. Let me simplify the function to a stub

Amir updated this revision to Diff 484450.Dec 20 2022, 7:00 PM

Use StringSet<>, update test

Amir marked an inline comment as done.Dec 20 2022, 7:01 PM
This revision was automatically updated to reflect the committed changes.