Skip to content

Commit 95ac72d

Browse files
admitricigcbot
authored andcommitted
Fix remat inst handling in CodeScheduling test
Temporary fix for the remat inst handling in CodeScheduling LIT test that allows indeterminism of the first two loads order
1 parent 46f497d commit 95ac72d

File tree

1 file changed

+6
-12
lines changed

1 file changed

+6
-12
lines changed

IGC/Compiler/tests/CodeScheduling/remat-inst-handling.ll

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -27,22 +27,16 @@ define spir_kernel void @test_remat(ptr addrspace(1) %A, i32 %x) {
2727
; CHECK: entry:
2828
; CHECK: br label [[BB1:%.*]]
2929
; CHECK: bb1:
30-
; CHECK: [[REMAT1_1:%.*]] = or i32 [[X:%.*]], 10, !remat !0
31-
; CHECK: [[REMAT1_2:%.*]] = shl nuw nsw i32 [[REMAT1_1]], 6, !remat !0
32-
; CHECK: [[REMAT1_3:%.*]] = or i32 [[REMAT1_2]], 16, !remat !0
33-
; CHECK: [[REMAT1_4:%.*]] = or i32 [[REMAT1_3]], [[REMAT1_2]], !remat !0
34-
; CHECK: [[REMAT1_5:%.*]] = shl nuw nsw i32 [[REMAT1_4]], 1, !remat !0
35-
; CHECK: [[CLONED_1:%.*]] = inttoptr i32 [[REMAT1_5]] to ptr addrspace(3), !remat !0
30+
; ...
31+
; CHECK: [[REMAT1_5:%.*]] = shl nuw nsw i32 [[REMAT1_4:.*]], 1
32+
; CHECK: [[CLONED_1:%.*]] = inttoptr i32 [[REMAT1_5]] to ptr addrspace(3)
3633
; CHECK: [[LOAD_1:%.*]] = load <8 x i16>, ptr addrspace(3) [[CLONED_1]], align 2
37-
38-
; CHECK: [[REMAT2_1:%.*]] = or i32 [[X]], 18
39-
; CHECK: [[REMAT2_2:%.*]] = shl nuw nsw i32 [[REMAT2_1]], 6
40-
; CHECK: [[REMAT2_3:%.*]] = or i32 [[REMAT2_2]], 16
41-
; CHECK: [[REMAT2_4:%.*]] = shl nuw nsw i32 [[REMAT2_3]], 1
34+
; ...
35+
; CHECK: [[REMAT2_4:%.*]] = shl nuw nsw i32 [[REMAT2_3:.*]], 1
4236
; CHECK: [[CLONED_2:%.*]] = inttoptr i32 [[REMAT2_4]] to ptr addrspace(3)
4337
; CHECK: [[LOAD_2:%.*]] = load <8 x i16>, ptr addrspace(3) [[CLONED_2]], align 2
4438

45-
; CHECK: [[REMAT3_1:%.*]] = or i32 [[X]], 10, !remat !0
39+
; CHECK: [[REMAT3_1:%.*]] = or i32 [[X:.*]], 10, !remat !0
4640
; CHECK: [[REMAT3_2:%.*]] = shl nuw nsw i32 [[REMAT3_1]], 6, !remat !0
4741
; CHECK: [[REMAT3_3:%.*]] = or i32 [[REMAT3_2]], 16, !remat !0
4842
; CHECK: [[REMAT3_4:%.*]] = shl nuw nsw i32 [[REMAT3_3]], 1, !remat !0

0 commit comments

Comments
 (0)