Skip to content

Commit 0cad7f0

Browse files
committed
Remove hlsl&spv specific functions
1 parent 8d678c1 commit 0cad7f0

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/test/Transforms/SimplifyCFG/skip-merging-duplicate-convergence-instrinsics.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ define void @nested(i32 %tidx, i32 %tidy, ptr %array) #0 {
2020
; CHECK: for.body4.i:
2121
; CHECK-NEXT: br i1 [[OR_COND_I]], label [[IF_THEN_I:%.*]], label [[FOR_COND1_I]]
2222
; CHECK: if.then.i:
23-
; CHECK-NEXT: [[HLSL_WAVE_ACTIVE_MAX7_I:%.*]] = call spir_func i32 @llvm.spv.wave.reduce.umax.i32(i32 0) [ "convergencectrl"(token [[TMP3]]) ]
23+
; CHECK-NEXT: [[TEST_VAL:%.*]] = call spir_func i32 @func_test(i32 0) [ "convergencectrl"(token [[TMP3]]) ]
2424
; CHECK-NEXT: [[TMP4:%.*]] = getelementptr inbounds i32, ptr [[ARRAY:%.*]], i32 0
25-
; CHECK-NEXT: store i32 [[HLSL_WAVE_ACTIVE_MAX7_I]], ptr [[TMP4]], align 4
25+
; CHECK-NEXT: store i32 [[TEST_VAL]], ptr [[TMP4]], align 4
2626
; CHECK-NEXT: br label [[EXIT]]
2727
; CHECK: exit:
2828
; CHECK-NEXT: ret void
@@ -46,9 +46,9 @@ for.body4.i:
4646
br i1 %or.cond.i, label %if.then.i, label %for.cond1.i
4747

4848
if.then.i:
49-
%hlsl.wave.active.max7.i = call spir_func i32 @llvm.spv.wave.reduce.umax.i32(i32 0) [ "convergencectrl"(token %4) ]
49+
%test.val = call spir_func i32 @func_test(i32 0) [ "convergencectrl"(token %4) ]
5050
%5 = getelementptr inbounds i32, ptr %array, i32 0
51-
store i32 %hlsl.wave.active.max7.i, ptr %5, align 4
51+
store i32 %test.val, ptr %5, align 4
5252
br label %cleanup.i
5353

5454
cleanup.i.loopexit:
@@ -63,6 +63,6 @@ exit:
6363

6464
declare token @llvm.experimental.convergence.loop() #0
6565

66-
declare i32 @llvm.spv.wave.reduce.umax.i32(i32) #0
66+
declare i32 @func_test(i32) #0
6767

6868
attributes #0 = { convergent }

0 commit comments

Comments
 (0)