Skip to content

Commit ff2d235

Browse files
MrSidimsvladimirlaz
authored andcommitted
Fix tests with wrong alias metadata
Signed-off-by: Dmitry Sidorov <[email protected]>
1 parent 3c8e592 commit ff2d235

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

llvm-spirv/test/llvm-intrinsics/experimental.noalias.scope.decl.ll

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,7 @@ entry:
1717
}
1818

1919
!opencl.enable.FP_CONTRACT = !{}
20-
!opencl.spir.version = !{!2}
21-
!opencl.ocl.version = !{!2}
22-
!opencl.used.extensions = !{!3}
23-
!opencl.used.optional.core.features = !{!3}
24-
!opencl.compiler.options = !{!3}
2520

26-
!1 = !{!1}
27-
!2 = !{i32 1, i32 2}
28-
!3 = !{}
21+
!1 = !{!2}
22+
!2 = distinct !{!2, !3}
23+
!3 = distinct !{!3}

llvm-spirv/test/transcoding/builtin_vars_opt.ll

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ entry:
7878
br i1 %tobool.not.i, label %if.end.i, label %if.then.i
7979

8080
if.then.i: ; preds = %entry
81-
%4 = load i32, i32 addrspace(4)* %3, align 4, !noalias !8
81+
%4 = load i32, i32 addrspace(4)* %3, align 4
8282
%ptridx.ascast.i14.i = addrspacecast i32 addrspace(1)* %add.ptr.i to i32 addrspace(4)*
8383
store i32 %4, i32 addrspace(4)* %ptridx.ascast.i14.i, align 4
8484
br label %if.end.i
@@ -89,7 +89,7 @@ if.end.i: ; preds = %if.then.i, %entry
8989
br i1 %tobool4.not.i, label %cond.false.i, label %"_ZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_7nd_itemILi1EEEE_clES5_.exit"
9090

9191
cond.false.i: ; preds = %if.end.i
92-
%5 = load i32, i32 addrspace(4)* %3, align 4, !noalias !11
92+
%5 = load i32, i32 addrspace(4)* %3, align 4
9393
br label %"_ZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_7nd_itemILi1EEEE_clES5_.exit"
9494

9595
"_ZZZ4mainENK3$_0clERN2cl4sycl7handlerEENKUlNS1_7nd_itemILi1EEEE_clES5_.exit": ; preds = %cond.false.i, %if.end.i
@@ -119,9 +119,3 @@ attributes #0 = { norecurse "correctly-rounded-divide-sqrt-fp-math"="false" "dis
119119
!9 = !{!"int", !10, i64 0}
120120
!10 = !{!"omnipotent char", !11, i64 0}
121121
!11 = !{!"Simple C++ TBAA"}
122-
!12 = !{!13}
123-
!13 = distinct !{!13, !14, !"_ZNK2cl4sycl5intel9sub_group19get_max_local_rangeEv: %agg.result"}
124-
!14 = distinct !{!14, !"_ZNK2cl4sycl5intel9sub_group19get_max_local_rangeEv"}
125-
!15 = !{!16}
126-
!16 = distinct !{!16, !17, !"_ZNK2cl4sycl5intel9sub_group19get_max_local_rangeEv: %agg.result"}
127-
!17 = distinct !{!17, !"_ZNK2cl4sycl5intel9sub_group19get_max_local_rangeEv"}

0 commit comments

Comments
 (0)