[PATCH] D96387: [CSSPGO][llvm-profgen] Renovate perfscript check and command line input validation

Wenlei He via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 10 10:27:26 PST 2021


wenlei added inline comments.


================
Comment at: llvm/tools/llvm-profgen/PerfReader.h:522
+      if (!TraceIt.isAtEoF()) {
+        if (Count && TraceIt.getCurrentLine().startswith(" 0x"))
+          return true;
----------------
A comment showing expected input would be helpful. For LBR part, do we want to check more than leading 0x? 

Should we also detect case where input doesn't have LBR at all? We don't have to do it here, but after we've processed the entire input, if no hybrid sample is found, emit an error too?


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96387



More information about the llvm-commits mailing list