[llvm] [BOLT] Add sink block to flow CFG in profile inference (PR #95047)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 11 16:39:30 PDT 2024
================
@@ -595,9 +595,7 @@ bool canApplyInference(const FlowFunction &Func) {
if (Func.Blocks.size() > opts::StaleMatchingMaxFuncSize)
return false;
- bool HasExitBlocks = llvm::any_of(
- Func.Blocks, [&](const FlowBlock &Block) { return Block.isExit(); });
- if (!HasExitBlocks)
+ if (Func.Blocks[Func.Sink].isEntry())
----------------
aaupov wrote:
Please add a comment what is meant by Sink block returning true for `isEntry`
https://github.com/llvm/llvm-project/pull/95047
More information about the llvm-commits
mailing list