[llvm-branch-commits] [llvm-profgen][NFC] Reuse isLBRSample (PR #191595)
via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Wed Apr 15 23:19:07 PDT 2026
================
@@ -1213,7 +1218,7 @@ PerfContent PerfScriptReader::checkPerfScriptType(StringRef FileName) {
TraceIt.advance();
}
if (!TraceIt.isAtEoF()) {
- if (isLBRSample(TraceIt.getCurrentLine())) {
+ if (isLBRSample(TraceIt.getCurrentLine(), false)) {
----------------
HighW4y2H3ll wrote:
This seems to be the only place CheckLineStart is set to false. Do we really need an extra CheckLineStart parameter? Would it be better to just trim the line here?
https://github.com/llvm/llvm-project/pull/191595
More information about the llvm-branch-commits
mailing list