[llvm] [LV] Use branch_weights metadata in getPredBlockCostDivisor test. NFC (PR #171299)

via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 9 01:13:28 PST 2025


github-actions[bot] wrote:

<!--PREMERGE ADVISOR COMMENT: Windows-->
# :window: Windows x64 Test Results

* 128439 tests passed
* 2793 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/LoopVectorize/AArch64/predicated-costs.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -p loop-vectorize -S C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -p loop-vectorize -S 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll'
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll:451:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[IV:%.*]] = phi i32 [ [[TMP0]], %[[ENTRY]] ], [ [[IV_NEXT:%.*]], %[[LATCH:.*]] ]
# |               ^
# | <stdin>:368:6: note: scanning from here
# | loop: ; preds = %latch, %entry
# |      ^
# | <stdin>:368:6: note: with "TMP0" equal to "%0, i1 %c1, i1 %c2"
# | loop: ; preds = %latch, %entry
# |      ^
# | <stdin>:368:6: note: with "ENTRY" equal to "entry"
# | loop: ; preds = %latch, %entry
# |      ^
# | <stdin>:369:2: note: possible intended match here
# |  %iv = phi i32 [ %0, %entry ], [ %iv.next, %latch ]
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\predicated-costs.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |           363:  
# |           364: define void @getPredBlockCostDivisor_truncate(i32 %0, i1 %c1, i1 %c2) { 
# |           365: entry: 
# |           366:  br label %loop 
# |           367:  
# |           368: loop: ; preds = %latch, %entry 
# | next:451'0          X~~~~~~~~~~~~~~~~~~~~~~~~~ error: no match found
# | next:451'1                                     with "TMP0" equal to "%0, i1 %c1, i1 %c2"
# | next:451'2                                     with "ENTRY" equal to "entry"
# |           369:  %iv = phi i32 [ %0, %entry ], [ %iv.next, %latch ] 
# | next:451'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:451'3      ?                                                   possible intended match
# |           370:  br i1 %c1, label %if.1, label %latch, !prof !15 
# | next:451'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           371:  
# | next:451'0     ~
# |           372: if.1: ; preds = %loop 
# | next:451'0     ~~~~~~~~~~~~~~~~~~~~~~
# |           373:  br i1 %c2, label %if.2, label %latch, !prof !15 
# | next:451'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |           374:  
# | next:451'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/171299


More information about the llvm-commits mailing list