[llvm] Insert symbols for prefetch targets read from basic blocks section profile. (PR #168439)

David Li via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 17 13:46:46 PST 2025


================
@@ -42,6 +42,16 @@ struct BBClusterInfo {
   unsigned PositionInCluster;
 };
 
+// Assuming a block is split into subblocks across its callsites, this struct
+// uniquely identifies the subblock in block `BBID` which starts from right
+// after call number `SubblockIndex` (or the beginning of the block if
+// `SubblockIndex` is zero) to the call number `SubblockIndex+1` (or the end of
+// the block if `SubblockIndex` is the last call in the block).
+struct SubblockID {
+  UniqueBBID BBID;
+  unsigned SubblockIndex;
----------------
david-xl wrote:

Just the callsite index within the block?

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


More information about the llvm-commits mailing list