[PATCH] D111749: [llvm-profgen] Also ignore the first external branch
Wenlei He via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Oct 13 16:31:41 PDT 2021
wenlei added inline comments.
================
Comment at: llvm/test/tools/llvm-profgen/inline-noprobe2.test:1
-
+; REQUIRES: asserts
+; RUN: llvm-profgen --format=text --perfscript=%S/Inputs/artificial-branch.perfscript --binary=%S/Inputs/inline-noprobe2.perfbin --output=%t --skip-symbolization --use-offset=0 --debug-only=perf-reader 2>&1 | FileCheck %s --check-prefix=CHECK-LBR
----------------
can we avoid having test depending on debug prints as much as we can? can check the final result only in this case.
================
Comment at: llvm/tools/llvm-profgen/PerfReader.cpp:495
continue;
else if (!LBRStack.empty()) {
WithColor::warning()
----------------
nit: with the break at the end, it's probably more readable if we separate the `continue` by replacing the `else if` with `if`.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D111749/new/
https://reviews.llvm.org/D111749
More information about the llvm-commits
mailing list