Skip to content

Commit e631ea0

Browse files
committed
pr-feedback: use --check-attributes
1 parent 074125a commit e631ea0

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

llvm/test/Transforms/ADCE/convergence.ll

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

4-
; CHECK: Function Attrs: convergent
54
define i32 @foo(i32 %a) #0 {
5+
; CHECK: Function Attrs: convergent
66
; CHECK-LABEL: define i32 @foo(
77
; CHECK-SAME: i32 [[A:%.*]]) #[[ATTR0:[0-9]+]] {
88
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -13,8 +13,8 @@ entry:
1313
ret i32 %a
1414
}
1515

16-
; CHECK: Function Attrs: convergent
1716
define void @bar() #0 {
17+
; CHECK: Function Attrs: convergent
1818
; CHECK-LABEL: define void @bar(
1919
; CHECK-SAME: ) #[[ATTR0]] {
2020
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -25,8 +25,8 @@ entry:
2525
ret void
2626
}
2727

28-
; CHECK: Function Attrs: convergent
2928
define void @baz() #0 {
29+
; CHECK: Function Attrs: convergent
3030
; CHECK-LABEL: define void @baz(
3131
; CHECK-SAME: ) #[[ATTR0]] {
3232
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -54,6 +54,7 @@ exit:
5454
}
5555

5656
define void @indirect_inner() #0 {
57+
; CHECK: Function Attrs: convergent
5758
; CHECK-LABEL: define void @indirect_inner(
5859
; CHECK-SAME: ) #[[ATTR0]] {
5960
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -65,6 +66,7 @@ entry:
6566
}
6667

6768
define void @indirect() #0 {
69+
; CHECK: Function Attrs: convergent
6870
; CHECK-LABEL: define void @indirect(
6971
; CHECK-SAME: ) #[[ATTR0]] {
7072
; CHECK-NEXT: [[ENTRY:.*:]]

llvm/test/Transforms/BDCE/convergence.ll

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

4-
; CHECK: Function Attrs: convergent
54
define i32 @foo(i32 %a) #0 {
5+
; CHECK: Function Attrs: convergent
66
; CHECK-LABEL: define i32 @foo(
77
; CHECK-SAME: i32 [[A:%.*]]) #[[ATTR0:[0-9]+]] {
88
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -13,8 +13,8 @@ entry:
1313
ret i32 %a
1414
}
1515

16-
; CHECK: Function Attrs: convergent
1716
define void @bar() #0 {
17+
; CHECK: Function Attrs: convergent
1818
; CHECK-LABEL: define void @bar(
1919
; CHECK-SAME: ) #[[ATTR0]] {
2020
; CHECK-NEXT: [[ENTRY:.*:]]
@@ -25,8 +25,8 @@ entry:
2525
ret void
2626
}
2727

28-
; CHECK: Function Attrs: convergent
2928
define void @baz() #0 {
29+
; CHECK: Function Attrs: convergent
3030
; CHECK-LABEL: define void @baz(
3131
; CHECK-SAME: ) #[[ATTR0]] {
3232
; CHECK-NEXT: [[ENTRY:.*:]]

0 commit comments

Comments
 (0)