[PATCH] D114284: [llvm-profgen] Truncate the context with zero probe ID

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 29 20:48:18 PST 2021


wenlei accepted this revision.
wenlei added inline comments.


================
Comment at: llvm/tools/llvm-profgen/ProfileGenerator.cpp:775
                "Inferred caller's location index shouldn't be zero!");
         FunctionSamples &CallerProfile =
             getFunctionProfileForContext(CallerContextId);
----------------
Before this fix, when CalleeContextId only has one frame, what did we get for CallerProfile? A dummy root profile with empty name? 


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D114284



More information about the llvm-commits mailing list