[PATCH] D119494: [CSSPGO] Do not recount callee samples when computing profile summary for nested CS profile.

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 10 22:30:16 PST 2022


wenlei added inline comments.


================
Comment at: llvm/lib/ProfileData/ProfileSummaryBuilder.cpp:113-116
+  } else {
+    // Do not recount callee samples if they are already merged into their base
+    // profiles. This can happen to CS nested profile.
+    if (FS.getContext().hasAttribute(sampleprof::ContextDuplicatedIntoBase))
----------------
nit: 
```
} else if (FS.getContext().hasAttribute(sampleprof::ContextDuplicatedIntoBase)) {
  return;
} 
```


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D119494/new/

https://reviews.llvm.org/D119494



More information about the llvm-commits mailing list