[llvm] [BOLT][NFC] Add sink block to flow CFG in profile inference (PR #95047)

Alexander Yermolovich via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 10 17:22:17 PDT 2024


================
@@ -372,6 +377,17 @@ createFlowFunction(const BinaryFunction::BasicBlockOrderType &BlockOrder) {
     }
   }
 
+  // Add dummy edges from the exit blocks to the sink block.
+  for (uint64_t I = 1; I < BlockOrder.size() + 1; I++) {
+    FlowBlock &Block = Func.Blocks[I];
----------------
ayermolo wrote:

const?

https://github.com/llvm/llvm-project/pull/95047


More information about the llvm-commits mailing list