diff options
author | wlei <wlei@fb.com> | 2021-02-09 16:41:44 -0800 |
---|---|---|
committer | wlei <wlei@fb.com> | 2021-02-12 15:18:50 -0800 |
commit | 426e326a19fe7888e1975e94cd6b1cd8233e5268 (patch) | |
tree | 963206dc46035619b570b97bce988684fbaeb965 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | f800a9bd42bf5cab31fcdc3b74d3bd75502afd3c (diff) | |
download | llvm-426e326a19fe7888e1975e94cd6b1cd8233e5268.zip llvm-426e326a19fe7888e1975e94cd6b1cd8233e5268.tar.gz llvm-426e326a19fe7888e1975e94cd6b1cd8233e5268.tar.bz2 |
[CSSPGO][llvm-profgen] Renovate perfscript check and command line input validation
This include some changes related with PerfReader's the input check and command line change:
1) It appears there might be thousands of leading MMAP-Event line in the perfscript for large workload. For this case, the 4k threshold is not eligible to determine it's a hybrid sample. This change renovated the `isHybridPerfScript` by going through the script without threshold limitation checking whether there is a non-empty call stack immediately followed by a LBR sample. It will stop once it find a valid one.
2) Added several input validations for the command line switches in PerfReader.
3) Changed the command line `show-disassembly` to `show-disassembly-only`, it will print to stdout and exit early which leave an empty output profile.
Reviewed By: hoy, wenlei
Differential Revision: https://reviews.llvm.org/D96387
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions