[PATCH] D120508: introducing profi flags
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 5 12:18:28 PST 2022
wenlei added inline comments.
================
Comment at: llvm/lib/Transforms/Utils/SampleProfileInference.cpp:744-746
+ std::max(MinCostMaxFlow::MinBaseDistance,
+ std::min(Func.Blocks[Func.Entry].Flow,
+ MinCostMaxFlow::AuxCostUnlikely / (NumBlocks() + 1)));
----------------
Could you explain this a bit more, how does this minimizes total multiplicative Flow increase for the remaining edges?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D120508/new/
https://reviews.llvm.org/D120508
More information about the llvm-commits
mailing list