[llvm] [LV] Keep predicate select when optimizeFindIVReductions when folding tail. (PR #191166)

via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 9 20:04:16 PDT 2026


github-actions[bot] wrote:

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

* 172415 tests passed
* 3130 tests skipped
* 1 test failed

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

### LLVM
<details>
<summary>LLVM.Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 2
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll | /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/find-last-iv-sinkable-expr.ll --check-prefix=NO-TF
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll
# 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/find-last-iv-sinkable-expr.ll --check-prefix=NO-TF
# note: command had no output on stdout or stderr
# RUN: at line 3
/home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -prefer-predicate-over-epilogue=predicate-else-scalar-epilogue -force-target-supports-masked-memory-ops  -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll | /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/find-last-iv-sinkable-expr.ll --check-prefix=TF
# executed command: /home/gha/actions-runner/_work/llvm-project/llvm-project/build/bin/opt -passes=loop-vectorize -force-vector-interleave=1 -force-vector-width=4 -prefer-predicate-over-epilogue=predicate-else-scalar-epilogue -force-target-supports-masked-memory-ops -S /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll
# 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/find-last-iv-sinkable-expr.ll --check-prefix=TF
# .---command stderr------------
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:76:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP3]] = select <4 x i1> [[TMP2]], <4 x i64> [[VEC_IND]], <4 x i64> [[VEC_PHI]]
# |            ^
# | <stdin>:24:58: note: scanning from here
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:24:58: note: with "TMP3" equal to "%4"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:24:58: note: with "TMP2" equal to "%2"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:24:58: note: with "VEC_IND" equal to "%vec.ind"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:24:58: note: with "VEC_PHI" equal to "%vec.phi"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:25:5: note: possible intended match here
# |  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer
# |     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:177:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP3]] = select <4 x i1> [[TMP2]], <4 x i64> [[VEC_IND]], <4 x i64> [[VEC_PHI]]
# |            ^
# | <stdin>:63:58: note: scanning from here
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:63:58: note: with "TMP3" equal to "%4"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:63:58: note: with "TMP2" equal to "%2"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:63:58: note: with "VEC_IND" equal to "%vec.ind"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:63:58: note: with "VEC_PHI" equal to "%vec.phi"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:64:5: note: possible intended match here
# |  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer
# |     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:395:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP3]] = select <4 x i1> [[TMP2]], <4 x i64> [[VEC_IND]], <4 x i64> [[VEC_PHI]]
# |            ^
# | <stdin>:145:58: note: scanning from here
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:145:58: note: with "TMP3" equal to "%4"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:145:58: note: with "TMP2" equal to "%2"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:145:58: note: with "VEC_IND" equal to "%vec.ind"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:145:58: note: with "VEC_PHI" equal to "%vec.phi"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:146:5: note: possible intended match here
# |  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer
# |     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:1216:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP8:%.*]] = icmp sle <4 x i64> [[REVERSE6]], [[REVERSE9]]
# |            ^
# | <stdin>:503:114: note: scanning from here
# |  %reverse9 = shufflevector <4 x i64> %wide.masked.load8, <4 x i64> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
# |                                                                                                                  ^
# | <stdin>:503:114: note: with "REVERSE6" equal to "%reverse6"
# |  %reverse9 = shufflevector <4 x i64> %wide.masked.load8, <4 x i64> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
# |                                                                                                                  ^
# | <stdin>:503:114: note: with "REVERSE9" equal to "%reverse9"
# |  %reverse9 = shufflevector <4 x i64> %wide.masked.load8, <4 x i64> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0>
# |                                                                                                                  ^
# | <stdin>:504:2: note: possible intended match here
# |  %8 = icmp sgt <4 x i64> %reverse6, %reverse9
# |  ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:1324:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP3]] = select <4 x i1> [[TMP2]], <4 x i64> [[VEC_IND]], <4 x i64> [[VEC_PHI]]
# |            ^
# | <stdin>:546:58: note: scanning from here
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:546:58: note: with "TMP3" equal to "%4"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:546:58: note: with "TMP2" equal to "%2"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:546:58: note: with "VEC_IND" equal to "%vec.ind"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:546:58: note: with "VEC_PHI" equal to "%vec.phi"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:547:5: note: possible intended match here
# |  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer
# |     ^
# | /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll:1427:12: error: TF-NEXT: expected string not found in input
# | ; TF-NEXT: [[TMP3]] = select <4 x i1> [[TMP2]], <4 x i64> [[VEC_IND]], <4 x i64> [[VEC_PHI]]
# |            ^
# | <stdin>:585:58: note: scanning from here
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:585:58: note: with "TMP3" equal to "%4"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:585:58: note: with "TMP2" equal to "%2"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:585:58: note: with "VEC_IND" equal to "%vec.ind"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:585:58: note: with "VEC_PHI" equal to "%vec.phi"
# |  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42)
# |                                                          ^
# | <stdin>:586:5: note: possible intended match here
# |  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer
# |     ^
# | 
# | Input file: <stdin>
# | Check file: /home/gha/actions-runner/_work/llvm-project/llvm-project/llvm/test/Transforms/LoopVectorize/find-last-iv-sinkable-expr.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |              .
# |              .
# |              .
# |             19:  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] 
# |             20:  %vec.phi = phi <4 x i64> [ splat (i64 -9223372036854775808), %vector.ph ], [ %4, %vector.body ] 
# |             21:  %0 = icmp ule <4 x i64> %vec.ind, %broadcast.splat 
# |             22:  %1 = getelementptr inbounds i64, ptr %a, i64 %index 
# |             23:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %1, <4 x i1> %0, <4 x i64> poison) 
# |             24:  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42) 
# | next:76'0                                                                X error: no match found
# | next:76'1                                                                  with "TMP3" equal to "%4"
# | next:76'2                                                                  with "TMP2" equal to "%2"
# | next:76'3                                                                  with "VEC_IND" equal to "%vec.ind"
# | next:76'4                                                                  with "VEC_PHI" equal to "%vec.phi"
# |             25:  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:76'5           ?                                                            possible intended match
# |             26:  %4 = select <4 x i1> %3, <4 x i64> %vec.ind, <4 x i64> %vec.phi 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             27:  %index.next = add i64 %index, 4 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             28:  %vec.ind.next = add <4 x i64> %vec.ind, splat (i64 4) 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             29:  %5 = icmp eq i64 %index.next, %n.vec 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             30:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !0 
# | next:76'0       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |             58:  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] 
# |             59:  %vec.phi = phi <4 x i64> [ splat (i64 -9223372036854775808), %vector.ph ], [ %4, %vector.body ] 
# |             60:  %0 = icmp ule <4 x i64> %vec.ind, %broadcast.splat 
# |             61:  %1 = getelementptr inbounds i64, ptr %a, i64 %index 
# |             62:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %1, <4 x i1> %0, <4 x i64> poison) 
# |             63:  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42) 
# | next:177'0                                                               X error: no match found
# | next:177'1                                                                 with "TMP3" equal to "%4"
# | next:177'2                                                                 with "TMP2" equal to "%2"
# | next:177'3                                                                 with "VEC_IND" equal to "%vec.ind"
# | next:177'4                                                                 with "VEC_PHI" equal to "%vec.phi"
# |             64:  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:177'5          ?                                                            possible intended match
# |             65:  %4 = select <4 x i1> %3, <4 x i64> %vec.ind, <4 x i64> %vec.phi 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             66:  %index.next = add i64 %index, 4 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             67:  %vec.ind.next = add <4 x i64> %vec.ind, splat (i64 4) 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             68:  %5 = icmp eq i64 %index.next, %n.vec 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |             69:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !3 
# | next:177'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            140:  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] 
# |            141:  %vec.phi = phi <4 x i64> [ splat (i64 -9223372036854775808), %vector.ph ], [ %4, %vector.body ] 
# |            142:  %0 = icmp ule <4 x i64> %vec.ind, %broadcast.splat 
# |            143:  %1 = getelementptr inbounds i64, ptr %a, i64 %index 
# |            144:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %1, <4 x i1> %0, <4 x i64> poison) 
# |            145:  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42) 
# | next:395'0                                                               X error: no match found
# | next:395'1                                                                 with "TMP3" equal to "%4"
# | next:395'2                                                                 with "TMP2" equal to "%2"
# | next:395'3                                                                 with "VEC_IND" equal to "%vec.ind"
# | next:395'4                                                                 with "VEC_PHI" equal to "%vec.phi"
# |            146:  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:395'5          ?                                                            possible intended match
# |            147:  %4 = select <4 x i1> %3, <4 x i64> %vec.ind, <4 x i64> %vec.phi 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            148:  %index.next = add i64 %index, 4 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            149:  %vec.ind.next = add <4 x i64> %vec.ind, splat (i64 4) 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            150:  %5 = icmp eq i64 %index.next, %n.vec 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            151:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !5 
# | next:395'0      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            498:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %5, <4 x i1> %reverse, <4 x i64> poison) 
# |            499:  %reverse6 = shufflevector <4 x i64> %wide.masked.load, <4 x i64> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0> 
# |            500:  %6 = getelementptr inbounds i64, ptr %b, i64 %3 
# |            501:  %7 = getelementptr i64, ptr %6, i64 -3 
# |            502:  %wide.masked.load8 = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %7, <4 x i1> %reverse, <4 x i64> poison) 
# |            503:  %reverse9 = shufflevector <4 x i64> %wide.masked.load8, <4 x i64> poison, <4 x i32> <i32 3, i32 2, i32 1, i32 0> 
# | next:1216'0                                                                                                                      X error: no match found
# | next:1216'1                                                                                                                        with "REVERSE6" equal to "%reverse6"
# | next:1216'2                                                                                                                        with "REVERSE9" equal to "%reverse9"
# |            504:  %8 = icmp sgt <4 x i64> %reverse6, %reverse9 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1216'3      ?                                             possible intended match
# |            505:  %9 = select <4 x i1> %2, <4 x i1> %8, <4 x i1> zeroinitializer 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            506:  %10 = select <4 x i1> %9, <4 x i64> %vec.phi, <4 x i64> %vec.ind 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            507:  %11 = xor <4 x i1> %9, splat (i1 true) 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            508:  %12 = or <4 x i1> %vec.phi3, %11 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            509:  %index.next = add i64 %index, 4 
# | next:1216'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            541:  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] 
# |            542:  %vec.phi = phi <4 x i64> [ splat (i64 -9223372036854775808), %vector.ph ], [ %4, %vector.body ] 
# |            543:  %0 = icmp ule <4 x i64> %vec.ind, %broadcast.splat 
# |            544:  %1 = getelementptr inbounds i64, ptr %a, i64 %index 
# |            545:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %1, <4 x i1> %0, <4 x i64> poison) 
# |            546:  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42) 
# | next:1324'0                                                              X error: no match found
# | next:1324'1                                                                with "TMP3" equal to "%4"
# | next:1324'2                                                                with "TMP2" equal to "%2"
# | next:1324'3                                                                with "VEC_IND" equal to "%vec.ind"
# | next:1324'4                                                                with "VEC_PHI" equal to "%vec.phi"
# |            547:  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1324'5         ?                                                            possible intended match
# |            548:  %4 = select <4 x i1> %3, <4 x i64> %vec.ind, <4 x i64> %vec.phi 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            549:  %index.next = add i64 %index, 4 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            550:  %vec.ind.next = add <4 x i64> %vec.ind, splat (i64 4) 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            551:  %5 = icmp eq i64 %index.next, %n.vec 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            552:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !18 
# | next:1324'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |              .
# |              .
# |              .
# |            580:  %vec.ind = phi <4 x i64> [ <i64 0, i64 1, i64 2, i64 3>, %vector.ph ], [ %vec.ind.next, %vector.body ] 
# |            581:  %vec.phi = phi <4 x i64> [ splat (i64 -9223372036854775808), %vector.ph ], [ %4, %vector.body ] 
# |            582:  %0 = icmp ule <4 x i64> %vec.ind, %broadcast.splat 
# |            583:  %1 = getelementptr inbounds i64, ptr %a, i64 %index 
# |            584:  %wide.masked.load = call <4 x i64> @llvm.masked.load.v4i64.p0(ptr align 8 %1, <4 x i1> %0, <4 x i64> poison) 
# |            585:  %2 = icmp eq <4 x i64> %wide.masked.load, splat (i64 42) 
# | next:1427'0                                                              X error: no match found
# | next:1427'1                                                                with "TMP3" equal to "%4"
# | next:1427'2                                                                with "TMP2" equal to "%2"
# | next:1427'3                                                                with "VEC_IND" equal to "%vec.ind"
# | next:1427'4                                                                with "VEC_PHI" equal to "%vec.phi"
# |            586:  %3 = select <4 x i1> %0, <4 x i1> %2, <4 x i1> zeroinitializer 
# | next:1427'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# | next:1427'5         ?                                                            possible intended match
# |            587:  %4 = select <4 x i1> %3, <4 x i64> %vec.ind, <4 x i64> %vec.phi 
# | next:1427'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            588:  %index.next = add i64 %index, 4 
# | next:1427'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            589:  %vec.ind.next = add <4 x i64> %vec.ind, splat (i64 4) 
# | next:1427'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            590:  %5 = icmp eq i64 %index.next, %n.vec 
# | next:1427'0     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# |            591:  br i1 %5, label %middle.block, label %vector.body, !llvm.loop !19 
# | next:1427'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/191166


More information about the llvm-commits mailing list