[CSSPGO][NFC] Fix a debug dump issue.
authorHongtao Yu <hoy@fb.com>
Fri, 26 Mar 2021 20:18:26 +0000 (13:18 -0700)
committerHongtao Yu <hoy@fb.com>
Fri, 26 Mar 2021 23:06:56 +0000 (16:06 -0700)
commit12ac0403b1d9a1eef1a06f8ef710580874d43b7d
tree26ddef46b82b521d0535656743e01d748612ebfa
parent16064e71e934547ca68b3d8f4bd71e9a2b7f4248
[CSSPGO][NFC] Fix a debug dump issue.

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.

Reviewed By: wenlei

Differential Revision: https://reviews.llvm.org/D99441
llvm/lib/Transforms/IPO/SampleContextTracker.cpp