[llvm] [X86] Improve llvm.get.active.lane.mask codegen (PR #225832)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 9 02:36:51 PDT 2026


github-actions[bot] wrote:

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

* 143799 tests passed
* 3511 tests skipped
* 4 tests failed

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

### LLVM
<details>
<summary>LLVM.CodeGen/X86/global-base-reg-dead-eflags.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\llc.exe < C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll -mtriple=i686-unknown-linux-gnu -relocation-model=pic -stop-after=finalize-isel | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll --check-prefix=X86
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\llc.exe' -mtriple=i686-unknown-linux-gnu -relocation-model=pic -stop-after=finalize-isel
# 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\CodeGen\X86\global-base-reg-dead-eflags.ll' --check-prefix=X86
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll:13:14: error: X86-NEXT: expected string not found in input
# |  ; X86-NEXT: [[MOV32rm1:%[0-9]+]]:gr32 = MOV32rm killed [[MOV32rm]], 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g)
# |              ^
# | <stdin>:76:92: note: scanning from here
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:76:92: note: with "MOV32rm" equal to "%1"
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:76:92: note: pattern attempts to capture variables: "MOV32rm1"
# |  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got)
# |                                                                                            ^
# | <stdin>:77:2: note: possible intended match here
# |  %2:gr32 = MOV32rm %1, 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g)
# |  ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\CodeGen\X86\global-base-reg-dead-eflags.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |           71:  amxProgModel: None 
# |           72: body: | 
# |           73:  bb.0 (%ir-block.0): 
# |           74:  %3:gr32 = MOVPC32r 0, implicit $esp, implicit $ssp 
# |           75:  %0:gr32_nosp = ADD32ri %3, target-flags(x86-got-absolute-address) &_GLOBAL_OFFSET_TABLE_, implicit-def dead $eflags 
# |           76:  %1:gr32 = MOV32rm %0, 1, $noreg, target-flags(x86-got) @g, $noreg :: (load (s32) from got) 
# | next:13'0                                                                                               {   search range start (exclusive)
# | next:13'1                                                                                                   error: no match found in search range
# | next:13'2                                                                                                   with "MOV32rm" equal to "%1"
# | next:13'3                                                                                                   pattern attempts to capture variables: "MOV32rm1"
# |           77:  %2:gr32 = MOV32rm %1, 1, $noreg, 0, $noreg :: (dereferenceable load (s32) from @g) 
# | next:13'4      ?                                                                                    possible intended match
# |           78:  $eax = COPY %2 
# |           79:  RET 0, $eax 
# |           80: ... 
# | next:13'5         } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/LoopVectorize/X86/fold-tail-low-trip-count.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\X86\fold-tail-low-trip-count.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\fold-tail-low-trip-count.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\X86\fold-tail-low-trip-count.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\X86\fold-tail-low-trip-count.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\fold-tail-low-trip-count.ll:54:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i64(i64 0, i64 [[TMP1]])
# |               ^
# | <stdin>:35:43: note: scanning from here
# |  %4 = getelementptr i8, ptr %start, i64 %3
# |                                           ^
# | <stdin>:35:43: note: with "TMP1" equal to "%3"
# |  %4 = getelementptr i8, ptr %start, i64 %3
# |                                           ^
# | <stdin>:35:43: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |  %4 = getelementptr i8, ptr %start, i64 %3
# |                                           ^
# | <stdin>:36:20: note: possible intended match here
# |  %active.lane.mask.entry = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 0, i64 %3)
# |                    ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\fold-tail-low-trip-count.ll:102:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i64(i64 0, i64 [[TMP1]])
# |               ^
# | <stdin>:68:11: note: scanning from here
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:68:11: note: with "TMP1" equal to "%3"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:68:11: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:69:20: note: possible intended match here
# |  %active.lane.mask.entry = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 0, i64 %3)
# |                    ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\fold-tail-low-trip-count.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |             .
# |             .
# |             .
# |            30:  %2 = add i64 %0, 1 
# |            31:  %3 = sub i64 %2, %1 
# |            32:  br label %vector.ph 
# |            33:  
# |            34: vector.ph: ; preds = %entry 
# |            35:  %4 = getelementptr i8, ptr %start, i64 %3 
# | next:54'0                                               {   search range start (exclusive)
# | next:54'1                                                   error: no match found in search range
# | next:54'2                                                   with "TMP1" equal to "%3"
# | next:54'3                                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |            36:  %active.lane.mask.entry = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 0, i64 %3) 
# | next:54'4                         ?                                                                            possible intended match
# |            37:  br label %vector.body 
# |            38:  
# |            39: vector.body: ; preds = %vector.body, %vector.ph 
# |            40:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |            41:  %active.lane.mask = phi <16 x i1> [ %active.lane.mask.entry, %vector.ph ], [ %active.lane.mask.next, %vector.body ] 
# |             .
# |             .
# |             .
# |            55:  
# |            56: exit: ; preds = %middle.block 
# |            57:  ret ptr %4 
# |            58: } 
# |            59:  
# |            60: define void @low_trip_count_via_profile_info(ptr align 16 %start, ptr align 16 %end, ptr noalias %src) #0 { 
# | next:54'5                                                   }                                                                search range end (exclusive)
# |            61: entry: 
# |            62:  %0 = ptrtoaddr ptr %end to i64 
# |            63:  %1 = ptrtoaddr ptr %start to i64 
# |            64:  %2 = add i64 %0, 1 
# |            65:  %3 = sub i64 %2, %1 
# |            66:  br label %vector.ph 
# |            67:  
# |            68: vector.ph: ; preds = %entry 
# | next:102'0              {                    search range start (exclusive)
# | next:102'1                                   error: no match found in search range
# | next:102'2                                   with "TMP1" equal to "%3"
# | next:102'3                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |            69:  %active.lane.mask.entry = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 0, i64 %3) 
# | next:102'4                        ?                                                                            possible intended match
# |            70:  br label %vector.body 
# |            71:  
# |            72: vector.body: ; preds = %vector.body, %vector.ph 
# |            73:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |            74:  %active.lane.mask = phi <16 x i1> [ %active.lane.mask.entry, %vector.ph ], [ %active.lane.mask.next, %vector.body ] 
# |             .
# |             .
# |             .
# |           108: !1 = !{!"branch_weights", i32 1, i32 0} 
# |           109: !2 = distinct !{!2, !3, !4, !5} 
# |           110: !3 = !{!"llvm.loop.isvectorized", i32 1} 
# |           111: !4 = !{!"llvm.loop.unroll.runtime.disable"} 
# |           112: !5 = !{!"llvm.loop.estimated_trip_count", i32 0} 
# |           113: !6 = distinct !{!6, !3, !4, !5} 
# | next:102'5                                     } search range end (exclusive)
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/LoopVectorize/X86/optsize.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 5
c:\_work\llvm-project\llvm-project\build\bin\opt.exe < C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\optsize.ll -passes=loop-vectorize -force-vector-width=64 -S -mtriple=x86_64-unknown-linux -mcpu=skx | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\optsize.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=loop-vectorize -force-vector-width=64 -S -mtriple=x86_64-unknown-linux -mcpu=skx
# 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\X86\optsize.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\optsize.ll:18:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 0, i32 203)
# |               ^
# | <stdin>:13:11: note: scanning from here
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:13:11: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:25:21: note: possible intended match here
# |  %active.lane.mask.next = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 %index.next, i32 203)
# |                     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\optsize.ll:90:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 0, i32 203)
# |               ^
# | <stdin>:42:11: note: scanning from here
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:42:11: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:54:21: note: possible intended match here
# |  %active.lane.mask.next = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 %index.next, i32 203)
# |                     ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\optsize.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |            8: ; Function Attrs: optsize 
# |            9: define i32 @foo_optsize() #0 { 
# |           10: entry: 
# |           11:  br label %vector.ph 
# |           12:  
# |           13: vector.ph: ; preds = %entry 
# | next:18'0              {                    search range start (exclusive)
# | next:18'1                                   error: no match found in search range
# | next:18'2                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |           14:  br label %vector.body 
# |           15:  
# |           16: vector.body: ; preds = %vector.body, %vector.ph 
# |           17:  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |           18:  %active.lane.mask = phi <64 x i1> [ splat (i1 true), %vector.ph ], [ %active.lane.mask.next, %vector.body ] 
# |           19:  %0 = getelementptr inbounds [32 x i8], ptr @tab, i32 0, i32 %index 
# |           20:  %wide.masked.load = call <64 x i8> @llvm.masked.load.v64i8.p0(ptr align 1 %0, <64 x i1> %active.lane.mask, <64 x i8> poison) 
# |           21:  %1 = icmp eq <64 x i8> %wide.masked.load, zeroinitializer 
# |           22:  %2 = select <64 x i1> %1, <64 x i8> splat (i8 2), <64 x i8> splat (i8 1) 
# |           23:  call void @llvm.masked.store.v64i8.p0(<64 x i8> %2, ptr align 1 %0, <64 x i1> %active.lane.mask) 
# |           24:  %index.next = add i32 %index, 64 
# |           25:  %active.lane.mask.next = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 %index.next, i32 203) 
# | next:18'3                         ?                                                                                     possible intended match
# |           26:  %3 = extractelement <64 x i1> %active.lane.mask.next, i64 0 
# |           27:  %4 = xor i1 %3, true 
# |           28:  br i1 %4, label %middle.block, label %vector.body, !llvm.loop !0 
# |           29:  
# |           30: middle.block: ; preds = %vector.body 
# |           31:  br label %for.end 
# |           32:  
# |           33: for.end: ; preds = %middle.block 
# |           34:  ret i32 0 
# |           35: } 
# |           36:  
# |           37: ; Function Attrs: minsize 
# |           38: define i32 @foo_minsize() #1 { 
# | next:18'4                             }        search range end (exclusive)
# |           39: entry: 
# |           40:  br label %vector.ph 
# |           41:  
# |           42: vector.ph: ; preds = %entry 
# | next:90'0              {                    search range start (exclusive)
# | next:90'1                                   error: no match found in search range
# | next:90'2                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |           43:  br label %vector.body 
# |           44:  
# |           45: vector.body: ; preds = %vector.body, %vector.ph 
# |           46:  %index = phi i32 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |           47:  %active.lane.mask = phi <64 x i1> [ splat (i1 true), %vector.ph ], [ %active.lane.mask.next, %vector.body ] 
# |           48:  %0 = getelementptr inbounds [32 x i8], ptr @tab, i32 0, i32 %index 
# |           49:  %wide.masked.load = call <64 x i8> @llvm.masked.load.v64i8.p0(ptr align 1 %0, <64 x i1> %active.lane.mask, <64 x i8> poison) 
# |           50:  %1 = icmp eq <64 x i8> %wide.masked.load, zeroinitializer 
# |           51:  %2 = select <64 x i1> %1, <64 x i8> splat (i8 2), <64 x i8> splat (i8 1) 
# |           52:  call void @llvm.masked.store.v64i8.p0(<64 x i8> %2, ptr align 1 %0, <64 x i1> %active.lane.mask) 
# |           53:  %index.next = add i32 %index, 64 
# |           54:  %active.lane.mask.next = call <64 x i1> @llvm.get.active.lane.mask.v64i1.i32(i32 %index.next, i32 203) 
# | next:90'3                         ?                                                                                     possible intended match
# |           55:  %3 = extractelement <64 x i1> %active.lane.mask.next, i64 0 
# |           56:  %4 = xor i1 %3, true 
# |           57:  br i1 %4, label %middle.block, label %vector.body, !llvm.loop !3 
# |           58:  
# |           59: middle.block: ; preds = %vector.body 
# |           60:  br label %for.end 
# |           61:  
# |           62: for.end: ; preds = %middle.block 
# |           63:  ret i32 0 
# |           64: } 
# |           65:  
# |           66: ; Function Attrs: optsize 
# |           67: define void @scev4stride1(ptr noalias captures(none) %a, ptr noalias readonly captures(none) %b, i32 %k) #0 { 
# | next:90'4                               }                                                                                     search range end (exclusive)
# |           68: for.body.preheader: 
# |           69:  br label %vector.ph 
# |           70:  
# |           71: vector.ph: ; preds = %for.body.preheader 
# |           72:  %broadcast.splatinsert = insertelement <64 x i32> poison, i32 %k, i64 0 
# |            .
# |            .
# |            .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/LoopVectorize/X86/vectorize-interleaved-accesses-gap.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
c:\_work\llvm-project\llvm-project\build\bin\opt.exe -passes=loop-vectorize -enable-masked-interleaved-mem-accesses -enable-interleaved-mem-accesses  -tail-folding-policy=must-fold-tail -force-vector-width=8 -S C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.ll | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -passes=loop-vectorize -enable-masked-interleaved-mem-accesses -enable-interleaved-mem-accesses -tail-folding-policy=must-fold-tail -force-vector-width=8 -S 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.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\X86\vectorize-interleaved-accesses-gap.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.ll:13:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <8 x i1> @llvm.get.active.lane.mask.v8i1.i64(i64 0, i64 10001)
# |               ^
# | <stdin>:10:11: note: scanning from here
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:10:11: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:24:21: note: possible intended match here
# |  %active.lane.mask.next = call <8 x i1> @llvm.get.active.lane.mask.v8i1.i64(i64 %index.next, i64 10001)
# |                     ^
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.ll:62:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[ACTIVE_LANE_MASK_ENTRY:%.*]] = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 0, i64 10001)
# |               ^
# | <stdin>:40:11: note: scanning from here
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:40:11: note: pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# | vector.ph: ; preds = %entry
# |           ^
# | <stdin>:61:21: note: possible intended match here
# |  %active.lane.mask.next = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 %index.next, i64 10001)
# |                     ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\LoopVectorize\X86\vectorize-interleaved-accesses-gap.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |            .
# |            .
# |            .
# |            5:  
# |            6: define void @test_pr59090(ptr %l_out, ptr noalias %b) #0 { 
# |            7: entry: 
# |            8:  br label %vector.ph 
# |            9:  
# |           10: vector.ph: ; preds = %entry 
# | next:13'0              {                    search range start (exclusive)
# | next:13'1                                   error: no match found in search range
# | next:13'2                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |           11:  br label %vector.body 
# |           12:  
# |           13: vector.body: ; preds = %vector.body, %vector.ph 
# |           14:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |           15:  %active.lane.mask = phi <8 x i1> [ splat (i1 true), %vector.ph ], [ %active.lane.mask.next, %vector.body ] 
# |           16:  %0 = mul nuw i64 %index, 6 
# |           17:  %1 = load i8, ptr %b, align 1, !llvm.access.group !0 
# |           18:  store i8 %1, ptr %b, align 1, !llvm.access.group !0 
# |           19:  %2 = getelementptr i8, ptr %l_out, i64 %0 
# |           20:  %interleaved.mask = shufflevector <8 x i1> %active.lane.mask, <8 x i1> poison, <48 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7> 
# |           21:  %3 = and <48 x i1> %interleaved.mask, <i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false> 
# |           22:  call void @llvm.masked.store.v48i8.p0(<48 x i8> <i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison>, ptr align 1 %2, <48 x i1> %3), !llvm.access.group !0 
# |           23:  %index.next = add i64 %index, 8 
# |           24:  %active.lane.mask.next = call <8 x i1> @llvm.get.active.lane.mask.v8i1.i64(i64 %index.next, i64 10001) 
# | next:13'3                         ?                                                                                     possible intended match
# |           25:  %4 = extractelement <8 x i1> %active.lane.mask.next, i64 0 
# |           26:  %5 = xor i1 %4, true 
# |           27:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !1 
# |           28:  
# |           29: middle.block: ; preds = %vector.body 
# |           30:  br label %exit 
# |           31:  
# |           32: exit: ; preds = %middle.block 
# |           33:  ret void 
# |           34: } 
# |           35:  
# |           36: define void @test_pr59090_interleave(ptr %l_out, ptr noalias %b) #0 { 
# | next:13'4                                          }                                  search range end (exclusive)
# |           37: entry: 
# |           38:  br label %vector.ph 
# |           39:  
# |           40: vector.ph: ; preds = %entry 
# | next:62'0              {                    search range start (exclusive)
# | next:62'1                                   error: no match found in search range
# | next:62'2                                   pattern attempts to capture variables: "ACTIVE_LANE_MASK_ENTRY"
# |           41:  br label %vector.body 
# |           42:  
# |           43: vector.body: ; preds = %vector.body, %vector.ph 
# |           44:  %index = phi i64 [ 0, %vector.ph ], [ %index.next, %vector.body ] 
# |           45:  %active.lane.mask = phi <8 x i1> [ splat (i1 true), %vector.ph ], [ %extract.next.alm.part, %vector.body ] 
# |            .
# |            .
# |            .
# |           56:  call void @llvm.masked.store.v48i8.p0(<48 x i8> <i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison>, ptr align 1 %4, <48 x i1> %6), !llvm.access.group !0 
# |           57:  %interleaved.mask2 = shufflevector <8 x i1> %active.lane.mask1, <8 x i1> poison, <48 x i32> <i32 0, i32 0, i32 0, i32 0, i32 0, i32 0, i32 1, i32 1, i32 1, i32 1, i32 1, i32 1, i32 2, i32 2, i32 2, i32 2, i32 2, i32 2, i32 3, i32 3, i32 3, i32 3, i32 3, i32 3, i32 4, i32 4, i32 4, i32 4, i32 4, i32 4, i32 5, i32 5, i32 5, i32 5, i32 5, i32 5, i32 6, i32 6, i32 6, i32 6, i32 6, i32 6, i32 7, i32 7, i32 7, i32 7, i32 7, i32 7> 
# |           58:  %7 = and <48 x i1> %interleaved.mask2, <i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false, i1 true, i1 false, i1 true, i1 false, i1 false, i1 false> 
# |           59:  call void @llvm.masked.store.v48i8.p0(<48 x i8> <i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison, i8 0, i8 poison, i8 0, i8 poison, i8 poison, i8 poison>, ptr align 1 %5, <48 x i1> %7), !llvm.access.group !0 
# |           60:  %index.next = add i64 %index, 16 
# |           61:  %active.lane.mask.next = call <16 x i1> @llvm.get.active.lane.mask.v16i1.i64(i64 %index.next, i64 10001) 
# | next:62'3                         ?                                                                                       possible intended match
# |           62:  %extract.next.alm.part = call <8 x i1> @llvm.vector.extract.v8i1.v16i1(<16 x i1> %active.lane.mask.next, i64 0) 
# |           63:  %extract.next.alm.part3 = call <8 x i1> @llvm.vector.extract.v8i1.v16i1(<16 x i1> %active.lane.mask.next, i64 8) 
# |           64:  %8 = extractelement <8 x i1> %extract.next.alm.part, i64 0 
# |           65:  %9 = xor i1 %8, true 
# |           66:  br i1 %9, label %middle.block, label %vector.body, !llvm.loop !5 
# |            .
# |            .
# |            .
# |           91: !0 = distinct !{} 
# |           92: !1 = distinct !{!1, !2, !3, !4} 
# |           93: !2 = !{!"llvm.loop.parallel_accesses", !0} 
# |           94: !3 = !{!"llvm.loop.isvectorized", i32 1} 
# |           95: !4 = !{!"llvm.loop.unroll.runtime.disable"} 
# |           96: !5 = distinct !{!5, !2, !3, !4} 
# | next:62'4                                     } 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/225832


More information about the llvm-commits mailing list