[llvm] [AArch64][CostModel] Fix stale costs for "ctpop" Intrinsic (PR #191769)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 13 01:40:41 PDT 2026
github-actions[bot] wrote:
<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results
* 172507 tests passed
* 3139 tests skipped
* 1 test failed
## Failed Tests
(click on a test name to see its output)
### LLVM
<details>
<summary>LLVM.Analysis/CostModel/AArch64/sve-neon-compare.ll</summary>
```
Exit Code: 1
Command Output (stdout):
--
# RUN: at line 1
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/CostModel/AArch64/sve-neon-compare.ll -passes='print<cost-model>' -disable-output 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/Analysis/CostModel/AArch64/sve-neon-compare.ll --check-prefix=NEON
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt '-passes=print<cost-model>' -disable-output
# 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/Analysis/CostModel/AArch64/sve-neon-compare.ll --check-prefix=NEON
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/CostModel/AArch64/sve-neon-compare.ll:26:9: error: NEON: expected string not found in input
# | ; NEON: cost of {{.*}} call {{.*}} @llvm.smin.nxv16i8
# | ^
# | <stdin>:5:95: note: scanning from here
# | Cost Model: Found an estimated cost of 1 for instruction: %r = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %a, <4 x i32> %b)
# | ^
# | <stdin>:8:51: note: possible intended match here
# | Cost Model: Invalid cost for instruction: %r = call <vscale x 16 x i8> @llvm.smin.nxv16i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b)
# | ^
# |
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Analysis/CostModel/AArch64/sve-neon-compare.ll
# |
# | -dump-input=help explains the following input dump.
# |
# | Input was:
# | <<<<<<
# | 1: Printing analysis 'Cost Model Analysis' for function 'smin_v16i8':
# | 2: Cost Model: Found an estimated cost of 1 for instruction: %r = call <16 x i8> @llvm.smin.v16i8(<16 x i8> %a, <16 x i8> %b)
# | 3: Cost Model: Found an estimated cost of 0 for instruction: ret <16 x i8> %r
# | 4: Printing analysis 'Cost Model Analysis' for function 'smin_v4i32':
# | 5: Cost Model: Found an estimated cost of 1 for instruction: %r = call <4 x i32> @llvm.smin.v4i32(<4 x i32> %a, <4 x i32> %b)
# | check:26'0 X~~~~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | 6: Cost Model: Found an estimated cost of 0 for instruction: ret <4 x i32> %r
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 7: Printing analysis 'Cost Model Analysis' for function 'smin_nxv16i8':
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 8: Cost Model: Invalid cost for instruction: %r = call <vscale x 16 x i8> @llvm.smin.nxv16i8(<vscale x 16 x i8> %a, <vscale x 16 x i8> %b)
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | check:26'1 ? possible intended match
# | 9: Cost Model: Found an estimated cost of 0 for instruction: ret <vscale x 16 x i8> %r
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 10: Printing analysis 'Cost Model Analysis' for function 'smin_nxv4i32':
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 11: Cost Model: Invalid cost for instruction: %r = call <vscale x 4 x i32> @llvm.smin.nxv4i32(<vscale x 4 x i32> %a, <vscale x 4 x i32> %b)
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 12: Cost Model: Found an estimated cost of 0 for instruction: ret <vscale x 4 x i32> %r
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | 13: Printing analysis 'Cost Model Analysis' for function 'smin_nxv2i64':
# | check:26'0 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | .
# | .
# | .
# | >>>>>>
# `-----------------------------
# 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/191769
More information about the llvm-commits
mailing list