Due to the debug info merging, there may have some contexts with zero probe id, we should truncate the context to avoid misleading pre-inliner.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lgtm, thanks.
llvm/tools/llvm-profgen/ProfiledBinary.h | ||
---|---|---|
459 | nit: // clear the current context for an unknown probe |
llvm/tools/llvm-profgen/ProfileGenerator.cpp | ||
---|---|---|
775 | Before this fix, when CalleeContextId only has one frame, what did we get for CallerProfile? A dummy root profile with empty name? |
Comment Actions
fix lint
llvm/tools/llvm-profgen/ProfileGenerator.cpp | ||
---|---|---|
775 | Before this fix, CalleeContextId is guaranteed to have >1 frame, see there is a check if (InlinerDesc != nullptr) to make sure the callee always has the inliner which means we only infer caller's count for inlining. |
Before this fix, when CalleeContextId only has one frame, what did we get for CallerProfile? A dummy root profile with empty name?