[llvm] [BOLT] Record return profile as call to continuation fallthrough (PR #109486)

Maksim Panchenko via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 27 15:03:05 PDT 2024


================
@@ -804,9 +804,13 @@ bool DataAggregator::doBranch(uint64_t From, uint64_t To, uint64_t Count,
   };
 
   BinaryFunction *FromFunc = handleAddress(From, /*IsFrom=*/true);
-  // Ignore returns.
-  if (IsReturn)
-    return true;
+  // Record returns as call->call continuation fall-through.
+  if (IsReturn) {
----------------
maksfb wrote:

Does the fix affect regular (non pre-aggregated) profiles as well?

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


More information about the llvm-commits mailing list