This adapts the collect_and_build_with_pgo.py script so that it works with monorepo repositories, i.e. the default after the github move.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
thanks for this!
i think the preferred way to PGO LLVM is cmake: https://llvm.org/docs/AdvancedBuilds.html
that said, while we have this script & the docs pointing to it, seems good to keep it up-to-date. LGTM
Comment Actions
Thanks for the quick response!
I had missed https://llvm.org/docs/AdvancedBuilds.html, so I just tried the instructions there to do a PGO build, but it seems it does not work (at least on ToT) currently.
ninja told me it doesn't know target stage2-instrumented-generate-profdata