@@ -50,8 +50,8 @@ if.end:
50
50
ret void
51
51
}
52
52
53
- define void @uniform_br_unprofitable (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef inreg %flag ) {
54
- ; GFX9-LABEL: uniform_br_unprofitable :
53
+ define void @uniform_br_same_weight (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef inreg %flag ) {
54
+ ; GFX9-LABEL: uniform_br_same_weight :
55
55
; GFX9: ; %bb.0: ; %entry
56
56
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
57
57
; GFX9-NEXT: s_cmp_lt_i32 s23, 1
@@ -68,7 +68,7 @@ define void @uniform_br_unprofitable(i32 noundef inreg %value, ptr addrspace(8)
68
68
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
69
69
; GFX9-NEXT: s_setpc_b64 s[30:31]
70
70
;
71
- ; GFX10-LABEL: uniform_br_unprofitable :
71
+ ; GFX10-LABEL: uniform_br_same_weight :
72
72
; GFX10: ; %bb.0: ; %entry
73
73
; GFX10-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
74
74
; GFX10-NEXT: s_cmp_lt_i32 s23, 1
@@ -97,8 +97,8 @@ if.end:
97
97
ret void
98
98
}
99
99
100
- define void @uniform_br_profitable (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef inreg %flag ) {
101
- ; GFX9-LABEL: uniform_br_profitable :
100
+ define void @uniform_br_then_likely (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef inreg %flag ) {
101
+ ; GFX9-LABEL: uniform_br_then_likely :
102
102
; GFX9: ; %bb.0: ; %entry
103
103
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
104
104
; GFX9-NEXT: s_cmp_lt_i32 s23, 1
@@ -115,7 +115,7 @@ define void @uniform_br_profitable(i32 noundef inreg %value, ptr addrspace(8) no
115
115
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
116
116
; GFX9-NEXT: s_setpc_b64 s[30:31]
117
117
;
118
- ; GFX10-LABEL: uniform_br_profitable :
118
+ ; GFX10-LABEL: uniform_br_then_likely :
119
119
; GFX10: ; %bb.0: ; %entry
120
120
; GFX10-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
121
121
; GFX10-NEXT: s_cmp_lt_i32 s23, 1
@@ -215,8 +215,8 @@ if.end:
215
215
ret void
216
216
}
217
217
218
- define void @divergent_br_unprofitable (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef %flag ) {
219
- ; GFX9-LABEL: divergent_br_unprofitable :
218
+ define void @divergent_br_same_weight (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef %flag ) {
219
+ ; GFX9-LABEL: divergent_br_same_weight :
220
220
; GFX9: ; %bb.0: ; %entry
221
221
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
222
222
; GFX9-NEXT: v_cmp_lt_i32_e32 vcc, 0, v0
@@ -235,7 +235,7 @@ define void @divergent_br_unprofitable(i32 noundef inreg %value, ptr addrspace(8
235
235
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
236
236
; GFX9-NEXT: s_setpc_b64 s[30:31]
237
237
;
238
- ; GFX1010-LABEL: divergent_br_unprofitable :
238
+ ; GFX1010-LABEL: divergent_br_same_weight :
239
239
; GFX1010: ; %bb.0: ; %entry
240
240
; GFX1010-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
241
241
; GFX1010-NEXT: v_cmp_lt_i32_e32 vcc_lo, 0, v0
@@ -255,7 +255,7 @@ define void @divergent_br_unprofitable(i32 noundef inreg %value, ptr addrspace(8
255
255
; GFX1010-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
256
256
; GFX1010-NEXT: s_setpc_b64 s[30:31]
257
257
;
258
- ; GFX1030-LABEL: divergent_br_unprofitable :
258
+ ; GFX1030-LABEL: divergent_br_same_weight :
259
259
; GFX1030: ; %bb.0: ; %entry
260
260
; GFX1030-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
261
261
; GFX1030-NEXT: s_mov_b32 s8, exec_lo
@@ -286,8 +286,8 @@ if.end:
286
286
ret void
287
287
}
288
288
289
- define void @divergent_br_profitable (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef %flag ) {
290
- ; GFX9-LABEL: divergent_br_profitable :
289
+ define void @divergent_br_then_likely (i32 noundef inreg %value , ptr addrspace (8 ) nocapture writeonly inreg %res , i32 noundef inreg %v_offset , i32 noundef inreg %0 , i32 noundef %flag ) {
290
+ ; GFX9-LABEL: divergent_br_then_likely :
291
291
; GFX9: ; %bb.0: ; %entry
292
292
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
293
293
; GFX9-NEXT: v_cmp_lt_i32_e32 vcc, 0, v0
@@ -305,7 +305,7 @@ define void @divergent_br_profitable(i32 noundef inreg %value, ptr addrspace(8)
305
305
; GFX9-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
306
306
; GFX9-NEXT: s_setpc_b64 s[30:31]
307
307
;
308
- ; GFX1010-LABEL: divergent_br_profitable :
308
+ ; GFX1010-LABEL: divergent_br_then_likely :
309
309
; GFX1010: ; %bb.0: ; %entry
310
310
; GFX1010-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
311
311
; GFX1010-NEXT: v_cmp_lt_i32_e32 vcc_lo, 0, v0
@@ -324,7 +324,7 @@ define void @divergent_br_profitable(i32 noundef inreg %value, ptr addrspace(8)
324
324
; GFX1010-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
325
325
; GFX1010-NEXT: s_setpc_b64 s[30:31]
326
326
;
327
- ; GFX1030-LABEL: divergent_br_profitable :
327
+ ; GFX1030-LABEL: divergent_br_then_likely :
328
328
; GFX1030: ; %bb.0: ; %entry
329
329
; GFX1030-NEXT: s_waitcnt vmcnt(0) expcnt(0) lgkmcnt(0)
330
330
; GFX1030-NEXT: s_mov_b32 s8, exec_lo
0 commit comments