During context promotion, intermediate nodes that are on a call path but do not come with a profile can be promoted together with their parent nodes. Do not print sample context string for such nodes since they do not have profile.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
The printing and the wording were intentional - here we're promoting a context, and it doesn't have to be a context with profile. I wanted to capture the tree transformation, not limited to nodes with profile.
Comment Actions
I see. If there's a descendent node with a profile along the current path, the tree transformation can be captured by the promotion of the descendent later? The printing AVs because of a null ToNode->getFunctionSamples().
Comment Actions
Oh, I didn't notice the AV. In that case, avoid AV is more important. Thanks for the fix.