[llvm] [Analysis] Extend llvm.experimental.cttz.elts to type-based-cost (PR #184578)

via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 4 02:43:32 PST 2026


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Linux-->
# :penguin: Linux x64 Test Results

* 170593 tests passed
* 3101 tests skipped
* 1 test failed

## Failed Tests
(click on a test name to see its output)

### LLVM
<details>
<summary>LLVM.Transforms/LoopVectorize/AArch64/early_exit_costs.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S < /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/early_exit_costs.ll -p loop-vectorize -disable-output    -debug-only=loop-vectorize 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/Transforms/LoopVectorize/AArch64/early_exit_costs.ll --check-prefixes=CHECK
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -S -p loop-vectorize -disable-output -debug-only=loop-vectorize
# 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/Transforms/LoopVectorize/AArch64/early_exit_costs.ll --check-prefixes=CHECK
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/early_exit_costs.ll:54:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: Cost of 48 for VF 16: EMIT vp<{{.*}}> = first-active-lane ir<%cmp3>
# |               ^
# | <stdin>:1672:57: note: scanning from here
# | Calculating cost of work in exit block vector.early.exit:
# |                                                         ^
# | <stdin>:1673:1: note: possible intended match here
# | Cost of 7 for VF 16: EMIT vp<%14> = first-active-lane ir<%cmp3>
# | ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/AArch64/early_exit_costs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |         1667: Cost of 1 for VF 16: exit condition instruction %ld1 = load i8, ptr %arrayidx, align 1 
# |         1668: Cost of 1 for VF 16: exit condition instruction %ld2 = load i8, ptr %arrayidx1, align 1 
# |         1669: Cost of 0 for VF 16: exit condition instruction %arrayidx = getelementptr inbounds i8, ptr %p1, i64 %index 
# |         1670: Cost of 0 for VF 16: exit condition instruction %arrayidx1 = getelementptr inbounds i8, ptr %p2, i64 %index 
# |         1671: LV: Selecting VF: 16. 
# |         1672: Calculating cost of work in exit block vector.early.exit: 
# | next:54'0                                                             X~ error: no match found
# |         1673: Cost of 7 for VF 16: EMIT vp<%14> = first-active-lane ir<%cmp3> 
# | next:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:54'1     ?                                                                possible intended match
# |         1674: Cost of 0 for VF 16: EMIT vp<%15> = add vp<%5>, vp<%14> 
# | next:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |         1675: Cost of 0 for VF 16: vp<%16> = DERIVED-IV ir<3> + vp<%15> * ir<1> 
# | next:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |         1676: Cost of 7 for VF 16: EMIT vp<%17> = first-active-lane ir<%cmp3> 
# | next:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |         1677: Cost of 0 for VF 16: EMIT vp<%18> = add vp<%5>, vp<%17> 
# | next:54'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |         1678: Cost of 0 for VF 16: vp<%19> = DERIVED-IV ir<15> + vp<%18> * ir<2> 
# | next:54'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/184578


More information about the llvm-commits mailing list