[llvm] [NFC][SampleFDO] In text sample prof reader, report dreport more concrete parsing errors for different line types (PR #154885)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 23 14:46:18 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `arc-builder` running on `arc-worker` while building `llvm` at step 6 "test-build-unified-tree-check-all".

Full details are available at: https://lab.llvm.org/buildbot/#/builders/3/builds/21015

<details>
<summary>Here is the relevant piece of the build log for the reference</summary>

```
Step 6 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'LLVM :: Transforms/SampleProfile/syntax.ll' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
/buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=NO-DEBUG /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 2
+ /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/syntax.prof
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=NO-DEBUG /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
not /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=missing.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=MISSING-FILE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 3
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=MISSING-FILE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
+ not /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=missing.prof
not /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-FN-HEADER /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 4
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-FN-HEADER /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
+ not /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_fn_header.prof
not /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-SAMPLE-LINE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 5
+ not /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_sample_line.prof
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-SAMPLE-LINE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
not /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_line_values.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-LINE-VALUES /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 6
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-LINE-VALUES /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
+ not /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_line_values.prof
not /buildbot/worker/arc-folder/build/bin/opt < /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof 2>&1 | /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-DISCRIMINATOR-VALUE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll # RUN: at line 7
+ /buildbot/worker/arc-folder/build/bin/FileCheck -check-prefix=BAD-DISCRIMINATOR-VALUE /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll
+ not /buildbot/worker/arc-folder/build/bin/opt -passes=sample-profile -sample-profile-file=/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof
/buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll:23:28: error: BAD-DISCRIMINATOR-VALUE: expected string not found in input
; BAD-DISCRIMINATOR-VALUE: error: {{.*}}bad_discriminator_value.prof:2: Expected 'NUM[.NUM]: NUM[ mangled_name:NUM]*', found 1.-3: 10
                           ^
<stdin>:1:1: note: scanning from here
error: /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof:2: Cannot parse metadata: 1.-3: 10
^

Input file: <stdin>
Check file: /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/syntax.ll

-dump-input=help explains the following input dump.

Input was:
<<<<<<
          1: error: /buildbot/worker/arc-folder/llvm-project/llvm/test/Transforms/SampleProfile/Inputs/bad_discriminator_value.prof:2: Cannot parse metadata: 1.-3: 10 
check:23     X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
>>>>>>

--

********************


```

</details>

https://github.com/llvm/llvm-project/pull/154885


More information about the llvm-commits mailing list