Explore related resources

Find more information about the topics in this Learning Path:

Give feedback

How would you rate this Learning Path?

Review frequently asked questions

AI-assisted

These FAQs were drafted with an approved AI-assisted workflow and reviewed by Arm contributors before publication. Human technical review remains part of the process so the final page reflects engineering rigor, accuracy, and Arm editorial standards.

Close
?
What should I have in my workspace after the setup step?
You should have the bsort.cpp source file and two directories: out for objects and binaries, and prof for raw and converted profile data. Keep these locations separate so you can distinguish build artifacts from profiling data.
Which LTO mode should I use first: Full-LTO or Thin-LTO?
Try both. Each mode emits LLVM bitcode during compilation but performs link-time optimization differently. Use the documented commands to build each mode and compare the results.
How do I know sample-based PGO data collection worked with `perf`?
Confirm that perf produced recording data that llvm-profgen can convert into an LLVM sample profile. If collection fails, check that your processor implements BRBE and that perf is available. You can use other sample sources, such as SPE or PMU events, with their own requirements.
Where does FE-PGO write its profile data and how is it used?
FE-PGO writes counters to a path you provide with -fprofile-instr-generate, typically under the prof directory. After running the instrumented binary, use llvm-profdata to convert and inspect the profile data. Then, use that profile in your next optimized Clang build.
How can I verify that an optimized build actually used LTO or a profile?
Check that your build invoked the appropriate LTO mode and included the profile-use option for your profile type, such as -fprofile-sample-use for S-PGO. You can also inspect objects or binaries with LLVM tools to review emitted bitcode or profile-driven metadata.

Share

Tell others about this Learning Path.

Return to Servers and Cloud Computing