[PATCH] D95547: [CSSPGO] Support of CS profiles in extended binary format.

Lei Wang via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 27 14:34:43 PST 2021


wlei added inline comments.


================
Comment at: llvm/include/llvm/ProfileData/SampleProf.h:445
   StringRef getNameWithContext() const { return FullContext; }
+  StringRef getInputNameWithContext() const { return InputContext; }
 
----------------
wenlei wrote:
> hoy wrote:
> > wenlei wrote:
> > > What about using `getNameWithContext(bool WithBracket = false)`, also change `InputContext` to `FullContextWithBracket`.
> > That looks better. Thanks.
> missed the rename of InputContext to FullContextWithBracket?
I didn't see any where in this patch add the bracket. Do we need to add it in this patch? because the input `ContextStr` actually doesn't have the bracket, the bracket in the regression test is printed by the text format which added the bracket in the end, but not for extended binary.



Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D95547



More information about the llvm-commits mailing list