[llvm] [BOLT][NFC] Add sink block to flow CFG in profile inference (PR #95047)
Amir Ayupov via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 10 15:45:59 PDT 2024
================
@@ -640,6 +663,9 @@ void assignProfile(BinaryFunction &BF,
if (Jump->Flow == 0)
continue;
+ // Skip the artificial sink block
----------------
aaupov wrote:
Can instead use `BlockOrder.size() - 1` to avoid the check on each block.
https://github.com/llvm/llvm-project/pull/95047
More information about the llvm-commits
mailing list