[llvm] [llvm][Timer] Don't print timers in TimerGroup when all Timers are removed (PR #131026)

LLVM Continuous Integration via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 12 20:16:58 PDT 2025


llvm-ci wrote:

LLVM Buildbot has detected a new failure on builder `premerge-monolithic-linux` running on `premerge-linux-1` while building `llvm` at step 7 "test-build-unified-tree-check-all".

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

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

```
Step 7 (test-build-unified-tree-check-all) failure: test (failure)
******************** TEST 'BOLT :: X86/icf-safe-test1.test' FAILED ********************
Exit Code: 1

Command Output (stderr):
--
RUN: at line 5: /build/buildbot/premerge-monolithic-linux/build/bin/llvm-mc -filetype=obj -triple x86_64-unknown-linux /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp1.o
+ /build/buildbot/premerge-monolithic-linux/build/bin/llvm-mc -filetype=obj -triple x86_64-unknown-linux /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp1.o
RUN: at line 6: /build/buildbot/premerge-monolithic-linux/build/bin/clang  --target=x86_64-unknown-linux-gnu -fPIE -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie --target=x86_64-unknown-linux-gnu -nostdlib /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp1.o -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe -Wl,-q
+ /build/buildbot/premerge-monolithic-linux/build/bin/clang --target=x86_64-unknown-linux-gnu -fPIE -fuse-ld=lld -Wl,--unresolved-symbols=ignore-all -Wl,--build-id=none -pie --target=x86_64-unknown-linux-gnu -nostdlib /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp1.o -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe -Wl,-q
ld.lld: warning: cannot find entry symbol _start; not setting start address
RUN: at line 7: /build/buildbot/premerge-monolithic-linux/build/bin/llvm-bolt --runtime-instrumentation-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --no-threads /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe --icf -debug-only=bolt-icf         -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.bolt 2>&1 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=ICFCHECK /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test
+ /build/buildbot/premerge-monolithic-linux/build/bin/llvm-bolt --runtime-instrumentation-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --no-threads /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe --icf -debug-only=bolt-icf -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.bolt
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=ICFCHECK /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test
RUN: at line 9: /build/buildbot/premerge-monolithic-linux/build/bin/llvm-bolt --runtime-instrumentation-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --no-threads /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe --icf=safe -debug-only=bolt-icf         -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.bolt 2>&1 | /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=SAFEICFCHECK /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test
+ /build/buildbot/premerge-monolithic-linux/build/bin/FileCheck --check-prefix=SAFEICFCHECK /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test
+ /build/buildbot/premerge-monolithic-linux/build/bin/llvm-bolt --runtime-instrumentation-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_instr.a --runtime-hugify-lib=/build/buildbot/premerge-monolithic-linux/build/tools/bolt/bolt_rt-bins/lib/libbolt_rt_hugify.a --no-threads /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.exe --icf=safe -debug-only=bolt-icf -o /build/buildbot/premerge-monolithic-linux/build/tools/bolt/test/X86/Output/icf-safe-test1.test.tmp.bolt
/build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test:21:22: error: SAFEICFCHECK-NEXT: is not on the line after the previous match
# SAFEICFCHECK-NEXT: ===---------
                     ^
<stdin>:18:1: note: 'next' match was here
===-------------------------------------------------------------------------===
^
<stdin>:11:47: note: previous match ended here
BOLT-DEBUG: folding barSubFunc into fooSubFunc
                                              ^
<stdin>:12:1: note: non-matching line after previous match is here
BOLT-DEBUG: ICF iteration 2...
^

Input file: <stdin>
Check file: /build/buildbot/premerge-monolithic-linux/llvm-project/bolt/test/X86/icf-safe-test1.test

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

Input was:
<<<<<<
         .
         .
         .
        13: BOLT-INFO: ICF folded 1 out of 6 functions in 3 passes. 0 functions had jump tables. 
        14: BOLT-INFO: Removing all identical functions will save 0.00 KB of code space. Folded functions were called 0 times based on profile. 
        15: BOLT-DEBUG: skipping function with reference taken barAddFunc 
        16: BOLT-DEBUG: ICF iteration 1... 
        17: BOLT-INFO: no .got section found 
        18: ===-------------------------------------------------------------------------=== 
next:21     !~~~~~~~~~~~                                                                     error: match on wrong line
        19:  Miscellaneous Ungrouped Timers 
        20: ===-------------------------------------------------------------------------=== 
        21:  
        22:  ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name --- 
...

```

</details>

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


More information about the llvm-commits mailing list