Skip to content

Commit abb81d2

Browse files
paperchaliceaokblast
authored andcommitted
[test][Transforms] Remove unsafe-fp-math uses part 2 (NFC) (llvm#164786)
Post cleanup for llvm#164534.
1 parent a5ebb7d commit abb81d2

File tree

71 files changed

+263
-425
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+263
-425
lines changed

llvm/test/Transforms/DeadArgElim/dbginfo.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@
2121
; updated LLVM functions.
2222

2323
; Function Attrs: uwtable
24-
define void @_Z2f2v() #0 !dbg !4 {
24+
define void @_Z2f2v() !dbg !4 {
2525
entry:
2626
call void (i32, ...) @_ZL2f1iz(i32 1), !dbg !15
2727
ret void, !dbg !16
2828
}
2929

3030
; Function Attrs: nounwind uwtable
31-
define internal void @_ZL2f1iz(i32, ...) #1 !dbg !8 {
31+
define internal void @_ZL2f1iz(i32, ...) !dbg !8 {
3232
entry:
3333
call void @llvm.dbg.value(metadata i32 %0, metadata !17, metadata !18), !dbg !19
3434
ret void, !dbg !20
@@ -40,8 +40,6 @@ declare void @llvm.dbg.declare(metadata, metadata, metadata) #2
4040
; Function Attrs: nounwind readnone
4141
declare void @llvm.dbg.value(metadata, metadata, metadata) #2
4242

43-
attributes #0 = { uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
44-
attributes #1 = { nounwind uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
4543
attributes #2 = { nounwind readnone }
4644

4745
!llvm.dbg.cu = !{!0}

llvm/test/Transforms/DeadStoreElimination/mda-with-dbg-values.ll

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ target triple = "x86_64-unknown-linux-gnu"
1414
@g = common global [1 x i8] zeroinitializer, align 1, !dbg !0
1515

1616
; Function Attrs: noinline nounwind uwtable
17-
define void @foo() #0 !dbg !14 {
17+
define void @foo() !dbg !14 {
1818
entry:
1919
%i = alloca i8, align 1
2020
store i8 1, ptr %i, align 1, !dbg !19
@@ -37,7 +37,6 @@ declare void @llvm.dbg.value(metadata, i64, metadata, metadata) #1
3737
; Function Attrs: argmemonly nounwind
3838
declare void @llvm.memcpy.p0.p0.i64(ptr nocapture writeonly, ptr nocapture readonly, i64, i1) #2
3939

40-
attributes #0 = { noinline nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
4140
attributes #1 = { nounwind readnone speculatable }
4241
attributes #2 = { argmemonly nounwind }
4342

llvm/test/Transforms/FunctionImport/Inputs/funcimport_debug.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,11 @@ target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16
33
target triple = "x86_64-unknown-linux-gnu"
44

55
; Function Attrs: nounwind uwtable
6-
define void @func() #0 !dbg !4 {
6+
define void @func() !dbg !4 {
77
entry:
88
ret void, !dbg !10
99
}
1010

11-
attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
12-
1311
!llvm.dbg.cu = !{!0}
1412
!llvm.module.flags = !{!7, !8}
1513
!llvm.ident = !{!9}

llvm/test/Transforms/FunctionImport/funcimport_debug.ll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,16 +24,13 @@ target datalayout = "e-m:e-p270:32:32-p271:32:32-p272:64:64-i64:64-f80:128-n8:16
2424
target triple = "x86_64-unknown-linux-gnu"
2525

2626
; Function Attrs: nounwind uwtable
27-
define i32 @main() #0 !dbg !4 {
27+
define i32 @main() !dbg !4 {
2828
entry:
2929
call void (...) @func(), !dbg !11
3030
ret i32 0, !dbg !12
3131
}
3232

33-
declare void @func(...) #1
34-
35-
attributes #0 = { nounwind uwtable "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
36-
attributes #1 = { "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+fxsr,+mmx,+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
33+
declare void @func(...)
3734

3835
!llvm.dbg.cu = !{!0}
3936
!llvm.module.flags = !{!8, !9}

llvm/test/Transforms/GCOVProfiling/exit-block.ll

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ target triple = "x86_64-unknown-linux-gnu"
1313
@A = common global i32 0, align 4, !dbg !9
1414

1515
; Function Attrs: nounwind uwtable
16-
define void @test() #0 !dbg !4 {
16+
define void @test() !dbg !4 {
1717
entry:
1818
tail call void (...) @f() #2, !dbg !14
1919
%0 = load i32, ptr @A, align 4, !dbg !15
@@ -28,12 +28,10 @@ if.end: ; preds = %entry, %if.then
2828
ret void, !dbg !18
2929
}
3030

31-
declare void @f(...) #1
31+
declare void @f(...)
3232

33-
declare void @g(...) #1
33+
declare void @g(...)
3434

35-
attributes #0 = { nounwind uwtable "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
36-
attributes #1 = { "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
3735
attributes #2 = { nounwind }
3836

3937
!llvm.gcov = !{!19}

llvm/test/Transforms/GCOVProfiling/linezero.ll

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ target triple = "x86_64-unknown-linux-gnu"
99
%struct.vector = type { i8 }
1010

1111
; Function Attrs: nounwind
12-
define i32 @_Z4testv() #0 !dbg !15 {
12+
define i32 @_Z4testv() !dbg !15 {
1313
entry:
1414
%retval = alloca i32, align 4
1515
%__range = alloca ptr, align 8
@@ -63,31 +63,26 @@ return: ; No predecessors!
6363
}
6464

6565
; Function Attrs: nounwind readnone
66-
declare void @llvm.dbg.declare(metadata, metadata, metadata) #1
66+
declare void @llvm.dbg.declare(metadata, metadata, metadata)
6767

68-
declare void @_Z13TagFieldSpecsv() #2
68+
declare void @_Z13TagFieldSpecsv()
6969

70-
declare ptr @_ZN6vector5beginEv(ptr) #2
70+
declare ptr @_ZN6vector5beginEv(ptr)
7171

72-
declare ptr @_ZN6vector3endEv(ptr) #2
72+
declare ptr @_ZN6vector3endEv(ptr)
7373

7474
; Function Attrs: noreturn nounwind
75-
declare void @llvm.trap() #3
75+
declare void @llvm.trap()
7676

7777
; Function Attrs: nounwind
78-
define void @_Z2f1v() #0 !dbg !20 {
78+
define void @_Z2f1v() !dbg !20 {
7979
entry:
8080
br label %0
8181

8282
; <label>:0 ; preds = %entry
8383
ret void, !dbg !45
8484
}
8585

86-
attributes #0 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
87-
attributes #1 = { nounwind readnone }
88-
attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="none" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "no-realign-stack" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
89-
attributes #3 = { noreturn nounwind }
90-
9186
!llvm.dbg.cu = !{!0}
9287
!llvm.module.flags = !{!23, !24}
9388
!llvm.gcov = !{!25}

llvm/test/Transforms/GCOVProfiling/split-indirectbr-critical-edges.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
; CHECK-NEXT: load {{.*}} @__llvm_gcov_ctr
1111
; CHECK-NOT: load {{.*}} @__llvm_gcov_ctr
1212

13-
define dso_local i32 @cannot_split(ptr nocapture readonly %p) #0 !dbg !7 {
13+
define dso_local i32 @cannot_split(ptr nocapture readonly %p) !dbg !7 {
1414
entry:
1515
%targets = alloca <2 x ptr>, align 16
1616
store <2 x ptr> <ptr blockaddress(@cannot_split, %indirect), ptr blockaddress(@cannot_split, %end)>, ptr %targets, align 16, !dbg !9
@@ -42,8 +42,6 @@ end: ; preds = %indirect
4242
ret i32 0, !dbg !22
4343
}
4444

45-
attributes #0 = { norecurse nounwind readonly uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "tune-cpu"="generic" "unsafe-fp-math"="false" "use-soft-float"="false" }
46-
4745
!llvm.dbg.cu = !{!0}
4846
!llvm.module.flags = !{!3, !4, !5}
4947

llvm/test/Transforms/GVN/cond_br2.ll

Lines changed: 15 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ target datalayout = "e-p:64:64:64-i1:8:8-i8:8:8-i16:16:16-i32:32:32-i64:64:64-f3
1111
%"union.llvm::SmallVectorBase::U" = type { x86_fp80 }
1212

1313
; Function Attrs: ssp uwtable
14-
define void @_Z4testv() #0 personality ptr @__gxx_personality_v0 {
14+
define void @_Z4testv() personality ptr @__gxx_personality_v0 {
1515
; CHECK-LABEL: define void @_Z4testv(
16-
; CHECK-SAME: ) #[[ATTR0:[0-9]+]] personality ptr @__gxx_personality_v0 {
16+
; CHECK-SAME: ) personality ptr @__gxx_personality_v0 {
1717
; CHECK-NEXT: [[ENTRY:.*:]]
1818
; CHECK-NEXT: [[SV:%.*]] = alloca %"class.llvm::SmallVector", align 16
19-
; CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr [[SV]]) #[[ATTR4:[0-9]+]]
19+
; CHECK-NEXT: call void @llvm.lifetime.start.p0(ptr [[SV]])
2020
; CHECK-NEXT: [[FIRSTEL_I_I_I_I_I_I:%.*]] = getelementptr inbounds %"class.llvm::SmallVector", ptr [[SV]], i64 0, i32 0, i32 0, i32 0, i32 0, i32 3
2121
; CHECK-NEXT: store ptr [[FIRSTEL_I_I_I_I_I_I]], ptr [[SV]], align 16, !tbaa [[ANYPTR_TBAA0:![0-9]+]]
2222
; CHECK-NEXT: [[ENDX_I_I_I_I_I_I:%.*]] = getelementptr inbounds %"class.llvm::SmallVector", ptr [[SV]], i64 0, i32 0, i32 0, i32 0, i32 0, i32 1
@@ -66,10 +66,10 @@ define void @_Z4testv() #0 personality ptr @__gxx_personality_v0 {
6666
; CHECK-NEXT: [[CMP_I_I_I_I19:%.*]] = icmp eq ptr [[TMP0]], [[FIRSTEL_I_I_I_I_I_I]]
6767
; CHECK-NEXT: br i1 [[CMP_I_I_I_I19]], label %[[_ZN4LLVM11SMALLVECTORIILJ8EED1EV_EXIT21:.*]], label %[[IF_THEN_I_I_I20:.*]]
6868
; CHECK: [[IF_THEN_I_I_I20]]:
69-
; CHECK-NEXT: call void @free(ptr [[TMP0]]) #[[ATTR4]]
69+
; CHECK-NEXT: call void @free(ptr [[TMP0]])
7070
; CHECK-NEXT: br label %[[_ZN4LLVM11SMALLVECTORIILJ8EED1EV_EXIT21]]
7171
; CHECK: [[_ZN4LLVM11SMALLVECTORIILJ8EED1EV_EXIT21]]:
72-
; CHECK-NEXT: call void @llvm.lifetime.end.p0(ptr [[SV]]) #[[ATTR4]]
72+
; CHECK-NEXT: call void @llvm.lifetime.end.p0(ptr [[SV]])
7373
; CHECK-NEXT: ret void
7474
; CHECK: [[LPAD]]:
7575
; CHECK-NEXT: [[TMP1:%.*]] = landingpad { ptr, i32 }
@@ -78,15 +78,15 @@ define void @_Z4testv() #0 personality ptr @__gxx_personality_v0 {
7878
; CHECK-NEXT: [[CMP_I_I_I_I:%.*]] = icmp eq ptr [[TMP2]], [[FIRSTEL_I_I_I_I_I_I]]
7979
; CHECK-NEXT: br i1 [[CMP_I_I_I_I]], label %[[EH_RESUME:.*]], label %[[IF_THEN_I_I_I:.*]]
8080
; CHECK: [[IF_THEN_I_I_I]]:
81-
; CHECK-NEXT: call void @free(ptr [[TMP2]]) #[[ATTR4]]
81+
; CHECK-NEXT: call void @free(ptr [[TMP2]])
8282
; CHECK-NEXT: br label %[[EH_RESUME]]
8383
; CHECK: [[EH_RESUME]]:
8484
; CHECK-NEXT: resume { ptr, i32 } [[TMP1]]
8585
;
8686

8787
entry:
8888
%sv = alloca %"class.llvm::SmallVector", align 16
89-
call void @llvm.lifetime.start.p0(ptr %sv) #1
89+
call void @llvm.lifetime.start.p0(ptr %sv)
9090
%FirstEl.i.i.i.i.i.i = getelementptr inbounds %"class.llvm::SmallVector", ptr %sv, i64 0, i32 0, i32 0, i32 0, i32 0, i32 3
9191
store ptr %FirstEl.i.i.i.i.i.i, ptr %sv, align 16, !tbaa !4
9292
%EndX.i.i.i.i.i.i = getelementptr inbounds %"class.llvm::SmallVector", ptr %sv, i64 0, i32 0, i32 0, i32 0, i32 0, i32 1
@@ -151,11 +151,11 @@ invoke.cont3: ; preds = %invoke.cont2
151151
br i1 %cmp.i.i.i.i19, label %_ZN4llvm11SmallVectorIiLj8EED1Ev.exit21, label %if.then.i.i.i20
152152

153153
if.then.i.i.i20: ; preds = %invoke.cont3
154-
call void @free(ptr %5) #1
154+
call void @free(ptr %5)
155155
br label %_ZN4llvm11SmallVectorIiLj8EED1Ev.exit21
156156

157157
_ZN4llvm11SmallVectorIiLj8EED1Ev.exit21: ; preds = %invoke.cont3, %if.then.i.i.i20
158-
call void @llvm.lifetime.end.p0(ptr %sv) #1
158+
call void @llvm.lifetime.end.p0(ptr %sv)
159159
ret void
160160

161161
lpad: ; preds = %if.end.i14, %if.end.i, %invoke.cont2
@@ -166,32 +166,27 @@ lpad: ; preds = %if.end.i14, %if.end
166166
br i1 %cmp.i.i.i.i, label %eh.resume, label %if.then.i.i.i
167167

168168
if.then.i.i.i: ; preds = %lpad
169-
call void @free(ptr %7) #1
169+
call void @free(ptr %7)
170170
br label %eh.resume
171171

172172
eh.resume: ; preds = %if.then.i.i.i, %lpad
173173
resume { ptr, i32 } %6
174174
}
175175

176176
; Function Attrs: nounwind
177-
declare void @llvm.lifetime.start.p0(ptr nocapture) #1
177+
declare void @llvm.lifetime.start.p0(ptr nocapture)
178178

179179
declare i32 @__gxx_personality_v0(...)
180180

181-
declare void @_Z1gRN4llvm11SmallVectorIiLj8EEE(ptr) #2
181+
declare void @_Z1gRN4llvm11SmallVectorIiLj8EEE(ptr)
182182

183183
; Function Attrs: nounwind
184-
declare void @llvm.lifetime.end.p0(ptr nocapture) #1
184+
declare void @llvm.lifetime.end.p0(ptr nocapture)
185185

186-
declare void @_ZN4llvm15SmallVectorBase8grow_podEmm(ptr, i64, i64) #2
186+
declare void @_ZN4llvm15SmallVectorBase8grow_podEmm(ptr, i64, i64)
187187

188188
; Function Attrs: nounwind
189-
declare void @free(ptr nocapture) #3
190-
191-
attributes #0 = { ssp uwtable "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
192-
attributes #1 = { nounwind }
193-
attributes #2 = { "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
194-
attributes #3 = { nounwind "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
189+
declare void @free(ptr nocapture)
195190

196191
!0 = !{!"any pointer", !1}
197192
!1 = !{!"omnipotent char", !2}

llvm/test/Transforms/GVN/pr33549.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
@Data = common local_unnamed_addr global [32 x i32] zeroinitializer, align 4
55

66
; Function Attrs: norecurse nounwind
7-
define void @testshl() local_unnamed_addr #0 {
7+
define void @testshl() local_unnamed_addr {
88
; CHECK-LABEL: define void @testshl(
9-
; CHECK-SAME: ) local_unnamed_addr #[[ATTR0:[0-9]+]] {
9+
; CHECK-SAME: ) local_unnamed_addr {
1010
; CHECK-NEXT: [[ENTRY:.*]]:
1111
; CHECK-NEXT: br label %[[FOR_BODY:.*]]
1212
; CHECK: [[FOR_BODY]]:
@@ -78,8 +78,6 @@ for.end10: ; preds = %for.inc8
7878
ret void
7979
}
8080

81-
attributes #0 = { norecurse nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "no-frame-pointer-elim"="true" "no-frame-pointer-elim-non-leaf" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="cortex-m7" "target-features"="+d16,+dsp,+fp-armv8,+hwdiv,+strict-align,+thumb-mode" "unsafe-fp-math"="false" "use-soft-float"="false" }
82-
8381
!llvm.module.flags = !{!0, !1}
8482
!llvm.ident = !{!2}
8583

llvm/test/Transforms/GVN/pr42605.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ if.end: ; preds = %if.then, %entry
114114
ret void
115115
}
116116

117-
attributes #0 = { noinline norecurse nounwind readonly uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="none" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "no-infs-fp-math"="false" "no-jump-tables"="false" "no-nans-fp-math"="false" "no-signed-zeros-fp-math"="false" "no-trapping-math"="false" "stack-protector-buffer-size"="8" "target-cpu"="x86-64" "target-features"="+cx8,+fxsr,+mmx,+sse,+sse2,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
117+
attributes #0 = { noinline norecurse nounwind readonly uwtable }
118118

119119
!llvm.module.flags = !{!0}
120120
!llvm.ident = !{!1}

0 commit comments

Comments
 (0)