[PATCH] D143311: [MLGO] Add BB Profile Dump Pass for Regalloc Case
Aiden Grossman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 6 17:30:12 PST 2023
aidengrossman added inline comments.
================
Comment at: llvm/lib/CodeGen/MBBProfileDump.cpp:74
+ for (auto &MBB : MF) {
+ *FileOutput.get() << MF.getName() << "," << MBB.getNumber() << ","
+ << MBFI.getBlockFreqRelativeToEntryBlock(&MBB) << "\n";
----------------
rahmanl wrote:
> This won't be pretty in Thin-LTO mode which can spawn multiple threads to perform codegen across various modules. Is this intentional?
Yes. We currently aren't supporting ThinLTO as when working with the MLGO infrastructure (where this is intended to fit in), ThinLTO is done at a previous stage during corpus collection where we won't be specifying this flag. I've added a note into the CLI flag help to note that it's not currently supported with ThinLTO.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D143311/new/
https://reviews.llvm.org/D143311
More information about the llvm-commits
mailing list