[llvm-branch-commits] [llvm] [VPlan] Remove header masks whose tail lanes aren't used (PR #241747)

via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Thu Nov 12 09:48:18 PST 2026


github-actions[bot] wrote:

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

* 148516 tests passed
* 2300 tests skipped
* 2 tests failed

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

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

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll -p loop-vectorize -mattr=+sve -enable-early-exit-vectorization-with-side-effects | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -p loop-vectorize -mattr=+sve -enable-early-exit-vectorization-with-side-effects
# 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\early_exit_with_stores.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll:68:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP18:%.*]] = getelementptr inbounds nuw i16, ptr [[TMP5]], i64 [[TMP2]]
# |               ^
# | <stdin>:46:60: note: scanning from here
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:46:60: note: with "TMP5" equal to "%3"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:46:60: note: with "TMP2" equal to "%2"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:46:60: note: pattern attempts to capture variables: "TMP18"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:97:5: note: possible intended match here
# |  %st.addr = getelementptr inbounds nuw i16, ptr %array, i64 %iv
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll:169:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP18:%.*]] = getelementptr inbounds nuw half, ptr [[TMP2]], i64 [[TMP14]]
# |               ^
# | <stdin>:131:61: note: scanning from here
# |  %3 = getelementptr inbounds nuw half, ptr %pred, i64 %index
# |                                                             ^
# | <stdin>:131:61: note: with "TMP2" equal to "%3"
# |  %3 = getelementptr inbounds nuw half, ptr %pred, i64 %index
# |                                                             ^
# | <stdin>:131:61: note: with "TMP14" equal to "%2"
# |  %3 = getelementptr inbounds nuw half, ptr %pred, i64 %index
# |                                                             ^
# | <stdin>:131:61: note: pattern attempts to capture variables: "TMP18"
# |  %3 = getelementptr inbounds nuw half, ptr %pred, i64 %index
# |                                                             ^
# | <stdin>:186:5: note: possible intended match here
# |  %ee.addr = getelementptr inbounds nuw half, ptr %pred, i64 %iv
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll:427:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP19:%.*]] = getelementptr inbounds nuw i16, ptr [[TMP5]], i64 [[TMP2]]
# |               ^
# | <stdin>:302:60: note: scanning from here
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:302:60: note: with "TMP5" equal to "%3"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:302:60: note: with "TMP2" equal to "%2"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:302:60: note: pattern attempts to capture variables: "TMP19"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:355:5: note: possible intended match here
# |  %ld.addr = getelementptr inbounds nuw i16, ptr %load.array, i64 %iv
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll:577:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP18:%.*]] = getelementptr inbounds nuw i16, ptr [[EE_ADDR1]], i64 [[TMP2]]
# |               ^
# | <stdin>:415:60: note: scanning from here
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:415:60: note: with "EE_ADDR1" equal to "%3"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:415:60: note: with "TMP2" equal to "%2"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:415:60: note: pattern attempts to capture variables: "TMP18"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:466:5: note: possible intended match here
# |  %ee.addr = getelementptr inbounds nuw i16, ptr %pred, i64 %iv
# |     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll:1274:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP18:%.*]] = getelementptr inbounds nuw i16, ptr [[TMP5]], i64 [[TMP2]]
# |               ^
# | <stdin>:831:60: note: scanning from here
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:831:60: note: with "TMP5" equal to "%3"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:831:60: note: with "TMP2" equal to "%2"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:831:60: note: pattern attempts to capture variables: "TMP18"
# |  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:882:5: note: possible intended match here
# |  %st.addr = getelementptr inbounds nuw i16, ptr %array, i64 %iv
# |     ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\AArch64\early_exit_with_stores.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             41:  %n.vec = sub i64 20, %n.mod.vf 
# |             42:  br label %vector.body 
# |             43:  
# |             44: vector.body: ; preds = %vector.body, %vector.ph 
# |             45:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |             46:  %3 = getelementptr inbounds nuw i16, ptr %pred, i64 %index 
# | next:68'0                                                                 {   search range start (exclusive)
# | next:68'1                                                                     error: no match found in search range
# | next:68'2                                                                     with "TMP5" equal to "%3"
# | next:68'3                                                                     with "TMP2" equal to "%2"
# | next:68'4                                                                     pattern attempts to capture variables: "TMP18"
# |             47:  %4 = getelementptr inbounds nuw [2 x i8], ptr %3, i64 %2 
# |             48:  %wide.load = load <vscale x 4 x i16>, ptr %3, align 2 
# |             49:  %wide.load1 = load <vscale x 4 x i16>, ptr %4, align 2 
# |             50:  %5 = icmp sgt <vscale x 4 x i16> %wide.load, splat (i16 500) 
# |             51:  %6 = icmp sgt <vscale x 4 x i16> %wide.load1, splat (i16 500) 
# |              .
# |              .
# |              .
# |             92:  %bc.resume.val = phi i64 [ %32, %middle.block ], [ 0, %entry ] 
# |             93:  br label %for.body 
# |             94:  
# |             95: for.body: ; preds = %scalar.ph, %for.inc 
# |             96:  %iv = phi i64 [ %bc.resume.val, %scalar.ph ], [ %iv.next, %for.inc ] 
# |             97:  %st.addr = getelementptr inbounds nuw i16, ptr %array, i64 %iv 
# | next:68'5           ?                                                             possible intended match
# |             98:  %data = load i16, ptr %st.addr, align 2 
# |             99:  %inc = add nsw i16 %data, 1 
# |            100:  store i16 %inc, ptr %st.addr, align 2 
# |            101:  %ee.addr = getelementptr inbounds nuw i16, ptr %pred, i64 %iv 
# |            102:  %ee.val = load i16, ptr %ee.addr, align 2 
# |              .
# |              .
# |              .
# |            111: exit: ; preds = %middle.block, %for.inc, %for.body 
# |            112:  ret void 
# |            113: } 
# |            114:  
# |            115: ; Function Attrs: vscale_range(1,16) 
# |            116: define void @loop_contains_store_fcmp_condition(ptr noalias dereferenceable(40) %array, ptr readonly align 2 dereferenceable(40) %pred) #0 { 
# | next:68'6                                                       }                                                                                              search range end (exclusive)
# |            117: entry: 
# |            118:  %0 = call i64 @llvm.vscale.i64() 
# |            119:  %1 = shl nuw i64 %0, 3 
# |            120:  %min.iters.check = icmp ult i64 20, %1 
# |            121:  br i1 %min.iters.check, label %scalar.ph, label %vector.ph 
# |              .
# |              .
# |              .
# |            126:  %n.vec = sub i64 20, %n.mod.vf 
# |            127:  br label %vector.body 
# |            128:  
# |            129: vector.body: ; preds = %vector.body, %vector.ph 
# |            130:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |            131:  %3 = getelementptr inbounds nuw half, ptr %pred, i64 %index 
# | next:169'0                                                                 {   search range start (exclusive)
# | next:169'1                                                                     error: no match found in search range
# | next:169'2                                                                     with "TMP2" equal to "%3"
# | next:169'3                                                                     with "TMP14" equal to "%2"
# | next:169'4                                                                     pattern attempts to capture variables: "TMP18"
# |            132:  %4 = getelementptr inbounds nuw [2 x i8], ptr %3, i64 %2 
# |            133:  %wide.load = load <vscale x 4 x half>, ptr %3, align 2 
# |            134:  %wide.load1 = load <vscale x 4 x half>, ptr %4, align 2 
# |            135:  %5 = fcmp ugt <vscale x 4 x half> %wide.load, splat (half 5.000000e+02) 
# |            136:  %6 = fcmp ugt <vscale x 4 x half> %wide.load1, splat (half 5.000000e+02) 
# |              .
# |              .
# |              .
# |            181:  %iv = phi i64 [ %bc.resume.val, %scalar.ph ], [ %iv.next, %for.inc ] 
# |            182:  %st.addr = getelementptr inbounds nuw i16, ptr %array, i64 %iv 
# |            183:  %data = load i16, ptr %st.addr, align 2 
# |            184:  %inc = add nsw i16 
# | ...
# `---data was truncated (10240/19858) (change limit with -D output_limit=N)
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/LoopVectorize/interleave_uncountable_exits.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -S < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\interleave_uncountable_exits.ll -p loop-vectorize -force-vector-width=4 -force-vector-interleave=2 -force-target-max-vector-interleave=2 -force-target-supports-masked-memory-ops -enable-early-exit-vectorization-with-side-effects | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\interleave_uncountable_exits.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S -p loop-vectorize -force-vector-width=4 -force-vector-interleave=2 -force-target-max-vector-interleave=2 -force-target-supports-masked-memory-ops -enable-early-exit-vectorization-with-side-effects
# 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\interleave_uncountable_exits.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\interleave_uncountable_exits.ll:15:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[TMP13:%.*]] = getelementptr inbounds nuw i16, ptr [[TMP1]], i64 4
# |               ^
# | <stdin>:13:60: note: scanning from here
# |  %0 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:13:60: note: with "TMP1" equal to "%0"
# |  %0 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:13:60: note: pattern attempts to capture variables: "TMP13"
# |  %0 = getelementptr inbounds nuw i16, ptr %pred, i64 %index
# |                                                            ^
# | <stdin>:14:2: note: possible intended match here
# |  %1 = getelementptr inbounds nuw i8, ptr %0, i64 8
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\interleave_uncountable_exits.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |            8: vector.ph: ; preds = %entry 
# |            9:  br label %vector.body 
# |           10:  
# |           11: vector.body: ; preds = %vector.body, %vector.ph 
# |           12:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |           13:  %0 = getelementptr inbounds nuw i16, ptr %pred, i64 %index 
# | next:15'0                                                               {   search range start (exclusive)
# | next:15'1                                                                   error: no match found in search range
# | next:15'2                                                                   with "TMP1" equal to "%0"
# | next:15'3                                                                   pattern attempts to capture variables: "TMP13"
# |           14:  %1 = getelementptr inbounds nuw i8, ptr %0, i64 8 
# | next:15'4      ?                                                   possible intended match
# |           15:  %wide.load = load <4 x i16>, ptr %0, align 2 
# |           16:  %wide.load1 = load <4 x i16>, ptr %1, align 2 
# |           17:  %2 = icmp sgt <4 x i16> %wide.load, splat (i16 500) 
# |           18:  %3 = icmp sgt <4 x i16> %wide.load1, splat (i16 500) 
# |           19:  %4 = freeze <4 x i1> %2 
# |            .
# |            .
# |            .
# |           95: attributes #3 = { nocallback nofree nosync nounwind willreturn memory(argmem: write) } 
# |           96:  
# |           97: !0 = distinct !{!0, !1, !2} 
# |           98: !1 = !{!"llvm.loop.isvectorized", i32 1} 
# |           99: !2 = !{!"llvm.loop.unroll.runtime.disable"} 
# |          100: !3 = distinct !{!3, !2, !1} 
# | next:15'5                                 } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# 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/241747


More information about the llvm-branch-commits mailing list