[PATCH] D93556: [CSSPGO][llvm-profgen] Compress recursive cycles in calling context

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 20 11:09:32 PST 2021


wenlei added inline comments.


================
Comment at: llvm/test/tools/llvm-profgen/recursion-compression.test:69
+; CHECK:  6: 1 fa:1
+ !CFGChecksum: 72617220756
+; CHECK: [main:2 @ foo:5 @ fa:8 @ fa:7 @ fb:5 @ fb:6 @ fa:8 @ fa:7 @ fb:6 @ fa]:6:2
----------------
nit: missed a CHECK?


================
Comment at: llvm/test/tools/llvm-profgen/recursion-compression.test:1
+; RUN: llvm-profgen --perfscript=%S/Inputs/recursion-compression.perfscript --binary=%S/Inputs/recursion-compression.perfbin --output=%t --compress-recursion=-1 --show-unwinder-output | FileCheck %s --check-prefix=CHECK-UNWINDER
+; RUN: FileCheck %s --input-file %t
----------------
wlei wrote:
> wmi wrote:
> > Could you show the result of --compress-recursion=0 (I assume no compression will happen) so it is easy to check which part of the output is compressed for --compress-recursion=-1?
> Good idea, added the uncompressed test case
Would it be better to place the check for compressed form side by side with uncompressed form for readability?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D93556



More information about the llvm-commits mailing list