[llvm] [SPIR-V] Report branch divergence in TTI (PR #214624)

via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 6 22:05:43 PDT 2026


github-actions[bot] wrote:

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

* 139389 tests passed
* 3643 tests skipped
* 3 tests failed

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

### Clang
<details>
<summary>Clang.Headers/__clang_hip_math.hip</summary>

```
Exit Code: 1

Command Output (stdout):
--
# RUN: at line 6
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -include __clang_hip_runtime_wrapper.h    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include    -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown  -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip -fcuda-is-device -O1 -o -    -D__HIPCC_RTC__ | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,DEFAULT C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip' -fcuda-is-device -O1 -o - -D__HIPCC_RTC__
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,DEFAULT 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip'
# note: command had no output on stdout or stderr
# RUN: at line 14
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -include __clang_hip_runtime_wrapper.h    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include    -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown  -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip -fcuda-is-device -O1 -menable-no-infs    -menable-no-nans -o -    -D__HIPCC_RTC__ | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,FINITEONLY C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip' -fcuda-is-device -O1 -menable-no-infs -menable-no-nans -o - -D__HIPCC_RTC__
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,FINITEONLY 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip'
# note: command had no output on stdout or stderr
# RUN: at line 23
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -include __clang_hip_runtime_wrapper.h    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include    -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown  -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip -fcuda-is-device -O1 -fgpu-approx-transcendentals -o -    -D__HIPCC_RTC__ | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,APPROX C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip' -fcuda-is-device -O1 -fgpu-approx-transcendentals -o - -D__HIPCC_RTC__
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,APPROX 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip'
# note: command had no output on stdout or stderr
# RUN: at line 31
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -include __clang_hip_runtime_wrapper.h    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include    -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown  -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip -fcuda-is-device -O1 -fno-hip-fp32-correctly-rounded-divide-sqrt -o -    -D__HIPCC_RTC__ | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=CHECK,NCRDIV C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -triple amdgpu9.06-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip' -fcuda-is-device -O1 -fno-hip-fp32-correctly-rounded-divide-sqrt -o - -D__HIPCC_RTC__
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=CHECK,NCRDIV 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip'
# note: command had no output on stdout or stderr
# RUN: at line 40
c:\_work\llvm-project\llvm-project\build\bin\clang.exe -cc1 -internal-isystem C:\_work\llvm-project\llvm-project\build\lib\clang\24\include -nostdsysteminc -include __clang_hip_runtime_wrapper.h    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers    -internal-isystem C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include    -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-unknown    -emit-llvm C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip -fcuda-is-device -O1 -o -    -D__HIPCC_RTC__ | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe -check-prefixes=AMDGCNSPIRV C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\clang.exe' -cc1 -internal-isystem 'C:\_work\llvm-project\llvm-project\build\lib\clang\24\include' -nostdsysteminc -include __clang_hip_runtime_wrapper.h -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/../../lib/Headers/cuda_wrappers' -internal-isystem 'C:\_work\llvm-project\llvm-project\clang\test\Headers/Inputs/include' -triple spirv64-amd-amdhsa -aux-triple x86_64-unknown-unknown -emit-llvm 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip' -fcuda-is-device -O1 -o - -D__HIPCC_RTC__
# note: command had no output on stdout or stderr
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe' -check-prefixes=AMDGCNSPIRV 'C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:91:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
# | // AMDGCNSPIRV-NEXT: [[ADD_I:%.*]] = add i64 [[MUL_I]], -48
# |                      ^
# | <stdin>:42:35: note: scanning from here
# |  %conv5.i = zext nneg i8 %0 to i64
# |                                   ^
# | <stdin>:42:35: note: with "MUL_I" equal to "%mul.i"
# |  %conv5.i = zext nneg i8 %0 to i64
# |                                   ^
# | <stdin>:42:35: note: pattern attempts to capture variables: "ADD_I"
# |  %conv5.i = zext nneg i8 %0 to i64
# |                                   ^
# | <stdin>:44:3: note: possible intended match here
# |  %sub.i = add i64 %add.i, %mul.i
# |   ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:207:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
# | // AMDGCNSPIRV-NEXT: br i1 [[OR_COND_I]], label %[[IF_END31_I]], label %[[IF_ELSE_I:.*]]
# |                      ^
# | <stdin>:96:33: note: scanning from here
# |  %or.cond.i = icmp ult i8 %2, 10
# |                                 ^
# | <stdin>:96:33: note: with "OR_COND_I" equal to "%or.cond.i"
# |  %or.cond.i = icmp ult i8 %2, 10
# |                                 ^
# | <stdin>:96:33: note: with "IF_END31_I" equal to "if.end31.i"
# |  %or.cond.i = icmp ult i8 %2, 10
# |                                 ^
# | <stdin>:96:33: note: pattern attempts to capture variables: "IF_ELSE_I"
# |  %or.cond.i = icmp ult i8 %2, 10
# |                                 ^
# | <stdin>:97:2: note: possible intended match here
# |  br i1 %or.cond.i, label %if.then.i, label %if.else.i
# |  ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:340:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
# | // AMDGCNSPIRV-NEXT: br i1 [[OR_COND_I33_I]], label %[[IF_END31_I_I]], label %[[IF_ELSE_I_I:.*]]
# |                      ^
# | <stdin>:167:37: note: scanning from here
# |  %or.cond.i33.i = icmp ult i8 %4, 10
# |                                     ^
# | <stdin>:167:37: note: with "OR_COND_I33_I" equal to "%or.cond.i33.i"
# |  %or.cond.i33.i = icmp ult i8 %4, 10
# |                                     ^
# | <stdin>:167:37: note: with "IF_END31_I_I" equal to "if.end31.i.i"
# |  %or.cond.i33.i = icmp ult i8 %4, 10
# |                                     ^
# | <stdin>:167:37: note: pattern attempts to capture variables: "IF_ELSE_I_I"
# |  %or.cond.i33.i = icmp ult i8 %4, 10
# |                                     ^
# | <stdin>:168:36: note: possible intended match here
# |  br i1 %or.cond.i33.i, label %if.then.i.i, label %if.else.i.i
# |                                    ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:4611:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
# | // AMDGCNSPIRV-NEXT: br i1 [[OR_COND_I33_I_I]], label %[[IF_END31_I_I_I]], label %[[IF_ELSE_I_I_I:.*]]
# |                      ^
# | <stdin>:1108:39: note: scanning from here
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1108:39: note: with "OR_COND_I33_I_I" equal to "%or.cond.i33.i.i"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1108:39: note: with "IF_END31_I_I_I" equal to "if.end31.i.i.i"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1108:39: note: pattern attempts to capture variables: "IF_ELSE_I_I_I"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1109:17: note: possible intended match here
# |  br i1 %or.cond.i33.i.i, label %if.then.i.i.i, label %if.else.i.i.i
# |                 ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:4962:22: error: AMDGCNSPIRV-NEXT: expected string not found in input
# | // AMDGCNSPIRV-NEXT: br i1 [[OR_COND_I33_I_I]], label %[[IF_END31_I_I_I]], label %[[IF_ELSE_I_I_I:.*]]
# |                      ^
# | <stdin>:1221:39: note: scanning from here
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1221:39: note: with "OR_COND_I33_I_I" equal to "%or.cond.i33.i.i"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1221:39: note: with "IF_END31_I_I_I" equal to "if.end31.i.i.i"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1221:39: note: pattern attempts to capture variables: "IF_ELSE_I_I_I"
# |  %or.cond.i33.i.i = icmp ult i8 %4, 10
# |                                       ^
# | <stdin>:1222:17: note: possible intended match here
# |  br i1 %or.cond.i33.i.i, label %if.then.i.i.i, label %if.else.i.i.i
# |                 ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:9435:19: error: undefined variable: LOOP10
# | // AMDGCNSPIRV: [[LOOP10]] = distinct !{[[LOOP10]], [[META11:![0-9]+]], [[META12:![0-9]+]]}
# |                   ^
# | C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip:9435:43: error: undefined variable: LOOP10
# | // AMDGCNSPIRV: [[LOOP10]] = distinct !{[[LOOP10]], [[META11:![0-9]+]], [[META12:![0-9]+]]}
# |                                           ^
# | <stdin>:2703:22: note: pattern attempts to capture variables: "META11", "META12"
# | !9 = !{!7, !7, i64 0}
# |                      ^
# | <stdin>:2704:3: note: possible intended match here
# | !10 = distinct !{!10, !11, !12}
# |   ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\clang\test\Headers\__clang_hip_math.hip
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |               .
# |               .
# |               .
# |              37:  
# |              38: while.body.i: ; preds = %while.cond.i 
# |              39:  %1 = and i8 %0, -8 
# |              40:  %or.cond.i = icmp eq i8 %1, 48 
# |              41:  %mul.i = shl i64 %__r.0.i, 3 
# |              42:  %conv5.i = zext nneg i8 %0 to i64 
# | next:91'0                                         {   search range start (exclusive)
# | next:91'1                                             error: no match found in search range
# | next:91'2                                             with "MUL_I" equal to "%mul.i"
# | next:91'3                                             pattern attempts to capture variables: "ADD_I"
# |              43:  %add.i = add nsw i64 %conv5.i, -48 
# |              44:  %sub.i = add i64 %add.i, %mul.i 
# | next:91'4          ?                                possible intended match
# |              45:  %__tagp.addr.1.i.idx = zext i1 %or.cond.i to i64 
# |              46:  %__tagp.addr.1.i = getelementptr inbounds nuw i8, ptr addrspace(4) %__tagp.addr.0.i, i64 %__tagp.addr.1.i.idx 
# |              47:  %__r.1.i = select i1 %or.cond.i, i64 %sub.i, i64 %__r.0.i 
# |              48:  br i1 %or.cond.i, label %while.cond.i, label %_ZL21__make_mantissa_base8PKc.exit, !llvm.loop !10 
# |              49:  
# |              50: _ZL21__make_mantissa_base8PKc.exit: ; preds = %while.cond.i, %while.body.i 
# |              51:  %retval.2.i = phi i64 [ 0, %while.body.i ], [ %__r.0.i, %while.cond.i ] 
# |              52:  ret i64 %retval.2.i 
# |              53: } 
# |              54:  
# |              55: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 
# |              56: define spir_func i64 @test___make_mantissa_base10(ptr addrspace(4) nofree noundef readonly captures(none) %p) local_unnamed_addr addrspace(4) #2 { 
# | next:91'5                                                          }                                                                                                  search range end (exclusive)
# |              57: entry: 
# |              58:  br label %while.cond.i 
# |              59:  
# |              60: while.cond.i: ; preds = %while.body.i, %entry 
# |              61:  %__tagp.addr.0.i = phi ptr addrspace(4) [ %p, %entry ], [ %__tagp.addr.1.i, %while.body.i ] 
# |               .
# |               .
# |               .
# |              91: while.body.i: ; preds = %entry, %if.end31.i 
# |              92:  %1 = phi i8 [ %5, %if.end31.i ], [ %0, %entry ] 
# |              93:  %__r.0.i3 = phi i64 [ %__r.1.i, %if.end31.i ], [ 0, %entry ] 
# |              94:  %__tagp.addr.0.i2 = phi ptr addrspace(4) [ %incdec.ptr.i, %if.end31.i ], [ %p, %entry ] 
# |              95:  %2 = add i8 %1, -48 
# |              96:  %or.cond.i = icmp ult i8 %2, 10 
# | next:207'0                                      {   search range start (exclusive)
# | next:207'1                                          error: no match found in search range
# | next:207'2                                          with "OR_COND_I" equal to "%or.cond.i"
# | next:207'3                                          with "IF_END31_I" equal to "if.end31.i"
# | next:207'4                                          pattern attempts to capture variables: "IF_ELSE_I"
# |              97:  br i1 %or.cond.i, label %if.then.i, label %if.else.i 
# | next:207'5        ?                                                      possible intended match
# |              98:  
# |              99: if.then.i: ; preds = %while.body.i 
# |             100:  %mul.i = shl i64 %__r.0.i3, 4 
# |             101:  %conv5.i = zext nneg i8 %1 to i64 
# |             102:  %add.i = add nsw i64 %conv5.i, -48 
# |               .
# |               .
# |               .
# |             138:  %retval.2.i = phi i64 [ 0, %entry ], [ 0, %if.else17.i ], [ %__r.1.i, %if.end31.i ] 
# |             139:  ret i64 %retval.2.i 
# |             140: } 
# |             141:  
# |             142: ; Function Attrs: mustprogress nofree norecurse nosync nounwind willreturn memory(argmem: read) 
# |             143: define spir_func i64 @test___make_mantissa(ptr addrspace(4) nofree noundef readonly captures(none) %p) local_unnamed_addr addrspace(4) #2 { 
# | next:207'6                                                  }                                                                                                  search range end (exclusive)
# |             144: entry: 
# |             145:  %0 = load i8, ptr addrspace(4) %p, align 1, !tbaa !9 
# |             146:  %cmp.i = icmp eq i8 %0, 48 
# |             147:  br i1 %cmp.i, label %if.then.i, label %while.cond.i14.i 
# |             148:  
# |               .
# |               .
# |               .
# |             162: while.body.i32.i: ; preds = %if.then5.i, %if.end31.i.i 
# |             163:  %3 = phi i8 [ %7, %if.end31.i.i ], [ %2, %if.then5.i ] 
# |             164:  %__r.0.i30.i7 = phi i64 [ %__r.1.i35.i, %if.end31.i.i ], [ 0, %if.then5.i ] 
# |             165:  %__tagp.addr.0.i29.i6 = phi ptr addrspace(4) [ %incdec.ptr.i36.i, %if
# | ...
# `---data was truncated (10240/18471) (change limit with -D output_limit=N)
# error: command failed with exit status: 1

--

```
</details>

### LLVM
<details>
<summary>LLVM.Transforms/ScalarizeMaskedMemIntrin/SPIRV/expand-masked-compressstore.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\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll -passes=scalarize-masked-mem-intrin -mtriple=spirv64 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll' -passes=scalarize-masked-mem-intrin -mtriple=spirv64
# 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\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll:8:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[SCALAR_MASK:%.*]] = bitcast <2 x i1> [[MASK:%.*]] to i2
# |               ^
# | <stdin>:6:30: note: scanning from here
# | define void @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %data) {
# |                              ^
# | <stdin>:6:30: note: pattern attempts to capture variables: "MASK", "SCALAR_MASK"
# | define void @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %data) {
# |                              ^
# | <stdin>:6:51: note: possible intended match here
# | define void @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %data) {
# |                                                   ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-compressstore.ll' 
# |           2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Transforms\\ScalarizeMaskedMemIntrin\\SPIRV\\expand-masked-compressstore.ll" 
# |           3: target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1" 
# |           4: target triple = "spirv64" 
# |           5:  
# |           6: define void @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %data) { 
# | next:8'0                                 {                                                          search range start (exclusive)
# | next:8'1                                                                                            error: no match found in search range
# | next:8'2                                                                                            pattern attempts to capture variables: "MASK", "SCALAR_MASK"
# | next:8'3                                                       ?                                    possible intended match
# |           7:  %Mask0 = extractelement <2 x i1> %mask, i64 0 
# |           8:  br i1 %Mask0, label %cond.store, label %else 
# |           9:  
# |          10: cond.store: ; preds = %0 
# |          11:  %1 = extractelement <2 x i64> %data, i64 0 
# |           .
# |           .
# |           .
# |          25:  
# |          26: else2: ; preds = %else, %cond.store1 
# |          27:  ret void 
# |          28: } 
# |          29:  
# |          30: define void @scalarize_v2i64_ones_mask(ptr addrspace(4) %p, <2 x i64> %data) { 
# | next:8'4                                            }                                         search range end (exclusive)
# |          31:  %Elt0 = extractelement <2 x i64> %data, i64 0 
# |          32:  %1 = getelementptr inbounds i64, ptr addrspace(4) %p, i32 0 
# |          33:  store i64 %Elt0, ptr addrspace(4) %1, align 1 
# |          34:  %Elt1 = extractelement <2 x i64> %data, i64 1 
# |          35:  %2 = getelementptr inbounds i64, ptr addrspace(4) %p, i32 1 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# error: command failed with exit status: 1

--

```
</details>
<details>
<summary>LLVM.Transforms/ScalarizeMaskedMemIntrin/SPIRV/expand-masked-expandload.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\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll -passes=scalarize-masked-mem-intrin -mtriple=spirv64 | c:\_work\llvm-project\llvm-project\build\bin\filecheck.exe C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll
# executed command: 'c:\_work\llvm-project\llvm-project\build\bin\opt.exe' -S 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll' -passes=scalarize-masked-mem-intrin -mtriple=spirv64
# 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\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll'
# .---command stderr------------
# | C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll:8:15: error: CHECK-NEXT: expected string not found in input
# | ; CHECK-NEXT: [[SCALAR_MASK:%.*]] = bitcast <2 x i1> [[MASK:%.*]] to i2
# |               ^
# | <stdin>:6:35: note: scanning from here
# | define <2 x i64> @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %passthru) {
# |                                   ^
# | <stdin>:6:35: note: pattern attempts to capture variables: "MASK", "SCALAR_MASK"
# | define <2 x i64> @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %passthru) {
# |                                   ^
# | <stdin>:6:56: note: possible intended match here
# | define <2 x i64> @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %passthru) {
# |                                                        ^
# | 
# | Input file: <stdin>
# | Check file: C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll
# | 
# | -dump-input=help explains the following input dump.
# | 
# | Input was:
# | <<<<<<
# |           1: ; ModuleID = 'C:\_work\llvm-project\llvm-project\llvm\test\Transforms\ScalarizeMaskedMemIntrin\SPIRV\expand-masked-expandload.ll' 
# |           2: source_filename = "C:\\_work\\llvm-project\\llvm-project\\llvm\\test\\Transforms\\ScalarizeMaskedMemIntrin\\SPIRV\\expand-masked-expandload.ll" 
# |           3: target datalayout = "e-i64:64-v16:16-v24:32-v32:32-v48:64-v96:128-v192:256-v256:256-v512:512-v1024:1024-n8:16:32:64-G1" 
# |           4: target triple = "spirv64" 
# |           5:  
# |           6: define <2 x i64> @scalarize_v2i64(ptr addrspace(4) %p, <2 x i1> %mask, <2 x i64> %passthru) { 
# | next:8'0                                      {                                                              search range start (exclusive)
# | next:8'1                                                                                                     error: no match found in search range
# | next:8'2                                                                                                     pattern attempts to capture variables: "MASK", "SCALAR_MASK"
# | next:8'3                                                            ?                                        possible intended match
# |           7:  %Mask0 = extractelement <2 x i1> %mask, i64 0 
# |           8:  br i1 %Mask0, label %cond.load, label %else 
# |           9:  
# |          10: cond.load: ; preds = %0 
# |          11:  %1 = load i64, ptr addrspace(4) %p, align 1 
# |           .
# |           .
# |           .
# |          27: else2: ; preds = %else, %cond.load1 
# |          28:  %res.phi.else3 = phi <2 x i64> [ %5, %cond.load1 ], [ %res.phi.else, %else ] 
# |          29:  ret <2 x i64> %res.phi.else3 
# |          30: } 
# |          31:  
# |          32: define <2 x i64> @scalarize_v2i64_ones_mask(ptr addrspace(4) %p, <2 x i64> %passthru) { 
# | next:8'4                                                 }                                             search range end (exclusive)
# |          33:  %1 = getelementptr inbounds i64, ptr addrspace(4) %p, i32 0 
# |          34:  %Load0 = load i64, ptr addrspace(4) %1, align 1 
# |          35:  %Res0 = insertelement <2 x i64> poison, i64 %Load0, i64 0 
# |          36:  %2 = getelementptr inbounds i64, ptr addrspace(4) %p, i32 1 
# |          37:  %Load1 = load i64, ptr addrspace(4) %2, align 1 
# |           .
# |           .
# |           .
# | >>>>>>
# `-----------------------------
# 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/214624


More information about the llvm-commits mailing list