Skip to content

Commit e065350

Browse files
committed
replace --check-attributes with --check-globals for tests
1 parent 3feef8e commit e065350

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

llvm/test/Transforms/ADCE/convergence.ll

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --version 5
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 5
22
; RUN: opt %s -passes=adce -S | FileCheck %s
33

44
define i32 @foo(i32 %a) #0 {
5-
; CHECK: Function Attrs: convergent
65
; CHECK-LABEL: define i32 @foo(
76
; CHECK-SAME: i32 [[A:%.*]]) #[[ATTR0:[0-9]+]] {
87
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -14,7 +13,6 @@ entry:
1413
}
1514

1615
define void @bar() #0 {
17-
; CHECK: Function Attrs: convergent
1816
; CHECK-LABEL: define void @bar(
1917
; CHECK-SAME: ) #[[ATTR0]] {
2018
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -26,7 +24,6 @@ entry:
2624
}
2725

2826
define void @baz() #0 {
29-
; CHECK: Function Attrs: convergent
3027
; CHECK-LABEL: define void @baz(
3128
; CHECK-SAME: ) #[[ATTR0]] {
3229
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -54,7 +51,6 @@ exit:
5451
}
5552

5653
define void @indirect_inner() #0 {
57-
; CHECK: Function Attrs: convergent
5854
; CHECK-LABEL: define void @indirect_inner(
5955
; CHECK-SAME: ) #[[ATTR0]] {
6056
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -66,7 +62,6 @@ entry:
6662
}
6763

6864
define void @indirect() #0 {
69-
; CHECK: Function Attrs: convergent
7065
; CHECK-LABEL: define void @indirect(
7166
; CHECK-SAME: ) #[[ATTR0]] {
7267
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -92,3 +87,7 @@ declare token @llvm.experimental.convergence.loop() #1
9287

9388
attributes #0 = { convergent }
9489
attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
90+
;.
91+
; CHECK: attributes #[[ATTR0]] = { convergent }
92+
; CHECK: attributes #[[ATTR1:[0-9]+]] = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
93+
;.

llvm/test/Transforms/BDCE/convergence.ll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
1-
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-attributes --version 5
1+
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --check-globals all --version 5
22
; RUN: opt %s -passes=bdce -S | FileCheck %s
33

44
define i32 @foo(i32 %a) #0 {
5-
; CHECK: Function Attrs: convergent
65
; CHECK-LABEL: define i32 @foo(
76
; CHECK-SAME: i32 [[A:%.*]]) #[[ATTR0:[0-9]+]] {
87
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -14,7 +13,6 @@ entry:
1413
}
1514

1615
define void @bar() #0 {
17-
; CHECK: Function Attrs: convergent
1816
; CHECK-LABEL: define void @bar(
1917
; CHECK-SAME: ) #[[ATTR0]] {
2018
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -26,7 +24,6 @@ entry:
2624
}
2725

2826
define void @baz() #0 {
29-
; CHECK: Function Attrs: convergent
3027
; CHECK-LABEL: define void @baz(
3128
; CHECK-SAME: ) #[[ATTR0]] {
3229
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -59,4 +56,7 @@ declare token @llvm.experimental.convergence.loop() #1
5956

6057
attributes #0 = { convergent }
6158
attributes #1 = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
62-
59+
;.
60+
; CHECK: attributes #[[ATTR0]] = { convergent }
61+
; CHECK: attributes #[[ATTR1:[0-9]+]] = { convergent nocallback nofree nosync nounwind willreturn memory(none) }
62+
;.

0 commit comments

Comments
 (0)