[llvm] [LLVM] InstCount pass implemented when enabling stats (PR #171658)
via llvm-commits
llvm-commits at lists.llvm.org
Thu Dec 11 12:20:35 PST 2025
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 167079 tests passed
* 2934 tests skipped
* 5 tests failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.CodeGen/AArch64/print-pipeline-passes.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=aarch64 -S -passes='default<O0>' -print-pipeline-passes < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/print-pipeline-passes.ll | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/print-pipeline-passes.ll
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -mtriple=aarch64 -S '-passes=default<O0>' -print-pipeline-passes
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck --check-prefix=O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/print-pipeline-passes.ll
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/print-pipeline-passes.ll:5:7: error: O0: expected string not found in input
# | ; O0: {{^}}function(ee-instrument<>),always-inline,coro-cond(coro-early,cgscc(coro-split),coro-cleanup,globaldce),alloc-token,function(annotation-remarks),verify,print{{$}}
# | ^
# | <stdin>:1:1: note: scanning from here
# | function(ee-instrument<>),always-inline,coro-cond(coro-early,cgscc(coro-split),coro-cleanup,globaldce),alloc-token,function(annotation-remarks),function(instcount),verify,print
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/CodeGen/AArch64/print-pipeline-passes.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: function(ee-instrument<>),always-inline,coro-cond(coro-early,cgscc(coro-split),coro-cleanup,globaldce),alloc-token,function(annotation-remarks),function(instcount),verify,print
# | check:5 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Feature/optnone-opt.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes='default<O0>' -S -debug-pass-manager /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll --check-prefix=CHECK-NOEXT-NPM-O0
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt '-passes=default<O0>' -S -debug-pass-manager /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll --check-prefix=CHECK-NOEXT-NPM-O0
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll:37:27: error: CHECK-NOEXT-NPM-O0-NOT: excluded string found in input
# | ; CHECK-NOEXT-NPM-O0-NOT: Skipping pass
# | ^
# | <stdin>:9:1: note: found here
# | Skipping pass InstCountPass on foo due to optnone attribute
# | ^~~~~~~~~~~~~
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: Running analysis: InnerAnalysisManagerProxy<FunctionAnalysisManager, Module> on [module]
# | 2: Running pass: EntryExitInstrumenterPass on foo (10 instructions)
# | 3: Running pass: AlwaysInlinerPass on [module]
# | 4: Running analysis: ProfileSummaryAnalysis on [module]
# | 5: Running pass: CoroConditionalWrapper on [module]
# | 6: Running pass: AllocTokenPass on [module]
# | 7: Running pass: AnnotationRemarksPass on foo (10 instructions)
# | 8: Running analysis: TargetLibraryAnalysis on foo
# | 9: Skipping pass InstCountPass on foo due to optnone attribute
# | not:37 !~~~~~~~~~~~~ error: no match expected
# | 10: Skipping pass: InstCountPass on foo
# | 11: Running pass: VerifierPass on [module]
# | 12: Running analysis: VerifierAnalysis on [module]
# | 13: Running pass: PrintModulePass on [module]
# | 14: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Feature/optnone-opt.ll'
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>LLVM.Other/new-pm-O0-defaults.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 10
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -debug-pass-manager -passes='default<O0>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll --check-prefixes=CHECK,CHECK-DEFAULT,CHECK-CORO,CHECK-ALLOCTOKEN
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -disable-verify -verify-analysis-invalidation=0 -debug-pass-manager '-passes=default<O0>' -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll --check-prefixes=CHECK,CHECK-DEFAULT,CHECK-CORO,CHECK-ALLOCTOKEN
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll:64:15: error: CHECK-NEXT: is not on the line after the previous match
# | ; CHECK-NEXT: Running pass: PrintModulePass
# | ^
# | <stdin>:10:1: note: 'next' match was here
# | Running pass: PrintModulePass on [module]
# | ^
# | <stdin>:8:40: note: previous match ended here
# | Running analysis: TargetLibraryAnalysis on foo
# | ^
# | <stdin>:9:1: note: non-matching line after previous match is here
# | Running pass: InstCountPass on foo (7 instructions)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 5: Running pass: CoroConditionalWrapper on [module]
# | 6: Running pass: AllocTokenPass on [module]
# | 7: Running pass: AnnotationRemarksPass on foo (7 instructions)
# | 8: Running analysis: TargetLibraryAnalysis on foo
# | 9: Running pass: InstCountPass on foo (7 instructions)
# | 10: Running pass: PrintModulePass on [module]
# | next:64 !~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 11: ; ModuleID = '/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll'
# | 12: source_filename = "/home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Other/new-pm-O0-defaults.ll"
# | 13:
# | 14: declare void @bar() local_unnamed_addr
# | 15:
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
### Clang
<details>
<summary>Clang.CodeGen/lto-newpm-pipeline.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -mllvm -verify-analysis-invalidation=0 -fdebug-pass-manager -flto=full -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c -check-prefix=CHECK-FULL-O0
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-unknown-linux-gnu -emit-llvm-bc -o /dev/null -mllvm -verify-analysis-invalidation=0 -fdebug-pass-manager -flto=full -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c -check-prefix=CHECK-FULL-O0
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c:39:24: error: CHECK-FULL-O0-NEXT: is not on the line after the previous match
# | // CHECK-FULL-O0-NEXT: Running pass: VerifierPass
# | ^
# | <stdin>:14:1: note: 'next' match was here
# | Running pass: VerifierPass on [module]
# | ^
# | <stdin>:11:40: note: previous match ended here
# | Running analysis: TargetLibraryAnalysis on Foo
# | ^
# | <stdin>:12:1: note: non-matching line after previous match is here
# | Skipping pass InstCountPass on Foo due to optnone attribute
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/lto-newpm-pipeline.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 9: Running pass: NameAnonGlobalPass on [module]
# | 10: Running pass: AnnotationRemarksPass on Foo (1 instruction)
# | 11: Running analysis: TargetLibraryAnalysis on Foo
# | 12: Skipping pass InstCountPass on Foo due to optnone attribute
# | 13: Skipping pass: InstCountPass on Foo
# | 14: Running pass: VerifierPass on [module]
# | next:39 !~~~~~~~~~~~~~~~~~~~~~~~~~ error: match on wrong line
# | 15: Running pass: BitcodeWriterPass on [module]
# | 16: Running analysis: ModuleSummaryIndexAnalysis on [module]
# | 17: Running analysis: BlockFrequencyAnalysis on Foo
# | 18: Running analysis: BranchProbabilityAnalysis on Foo
# | 19: Running analysis: LoopAnalysis on Foo
# | 20: Running analysis: DominatorTreeAnalysis on Foo
# | 21: Running analysis: PostDominatorTreeAnalysis on Foo
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
<details>
<summary>Clang.CodeGen/no-skipped-passes-O0-opt-bisect.c</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-linux-gnu -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c -fdebug-pass-manager -emit-llvm -o /dev/null 2>&1 | /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/clang -cc1 -internal-isystem /home/gha/actions-runner/_work/llvm-project/llvm-project/build/lib/clang/22/include -nostdsysteminc -triple x86_64-linux-gnu -O0 /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c -fdebug-pass-manager -emit-llvm -o /dev/null
# note: command had no output on stdout or stderr
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/FileCheck /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c:26:15: error: CHECK-NOT: excluded string found in input
# | // CHECK-NOT: Skipping pass
# | ^
# | <stdin>:11:1: note: found here
# | Skipping pass InstCountPass on func due to optnone attribute
# | ^~~~~~~~~~~~~
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/clang/test/CodeGen/no-skipped-passes-O0-opt-bisect.c
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | .
# | .
# | .
# | 6: Running analysis: ProfileSummaryAnalysis on [module]
# | 7: Running pass: CoroConditionalWrapper on [module]
# | 8: Running pass: AllocTokenPass on [module]
# | 9: Running pass: AnnotationRemarksPass on func (4 instructions)
# | 10: Running analysis: TargetLibraryAnalysis on func
# | 11: Skipping pass InstCountPass on func due to optnone attribute
# | not:26 !~~~~~~~~~~~~ error: no match expected
# | 12: Skipping pass: InstCountPass on func
# | 13: Running pass: VerifierPass on [module]
# | 14: Running pass: PrintModulePass on [module]
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1
--
```
</details>
If these failures are unrelated to your changes (for example tests are broken or flaky at HEAD), please open an issue at https://github.com/llvm/llvm-project/issues and add the `infrastructure` label.
https://github.com/llvm/llvm-project/pull/171658
More information about the llvm-commits
mailing list