[llvm] [ctx_prof] Handle `select` and its `step` instrumentation (PR #109185)

David Li via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 21:14:29 PDT 2024


================
@@ -324,12 +341,34 @@ class ProfileAnnotator final {
     PB.addEntryCount(Counters[0]);
 
     for (auto &BB : F) {
+      const auto &BBInfo = getBBInfo(BB);
+      if (BBInfo.getCount() > 0) {
+        for (auto &I : BB) {
----------------
david-xl wrote:

put this into a helper function?

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


More information about the llvm-commits mailing list