Skip to content

Commit f843fcb

Browse files
paperchaliceaokblast
authored andcommitted
[Analysis][test] Remove unsafe-fp-math uses (NFC) (llvm#164605)
Post cleanup for llvm#164534.
1 parent 63d073f commit f843fcb

File tree

14 files changed

+58
-100
lines changed

14 files changed

+58
-100
lines changed

llvm/test/Analysis/BranchProbabilityInfo/pr22718.ll

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,14 @@
1212
@.str = private unnamed_addr constant [17 x i8] c"x = %lu\0Ay = %lu\0A\00", align 1
1313

1414
; Function Attrs: inlinehint nounwind uwtable
15-
define i32 @main() #0 {
15+
define i32 @main() {
1616
entry:
1717
%retval = alloca i32, align 4
1818
%i = alloca i64, align 8
1919
store i32 0, ptr %retval
2020
store i64 0, ptr @y, align 8
2121
store i64 0, ptr @x, align 8
22-
call void @srand(i32 422304) #3
22+
call void @srand(i32 422304)
2323
store i64 0, ptr %i, align 8
2424
br label %for.cond
2525

@@ -29,7 +29,7 @@ for.cond: ; preds = %for.inc, %entry
2929
br i1 %cmp, label %for.body, label %for.end, !prof !1
3030

3131
for.body: ; preds = %for.cond
32-
%call = call i32 @rand() #3
32+
%call = call i32 @rand()
3333
%conv = sitofp i32 %call to double
3434
%mul = fmul double %conv, 1.000000e+02
3535
%div = fdiv double %mul, 0x41E0000000000000
@@ -65,17 +65,12 @@ for.end: ; preds = %for.cond
6565
}
6666

6767
; Function Attrs: nounwind
68-
declare void @srand(i32) #1
68+
declare void @srand(i32)
6969

7070
; Function Attrs: nounwind
71-
declare i32 @rand() #1
71+
declare i32 @rand()
7272

73-
declare i32 @printf(ptr, ...) #2
74-
75-
attributes #0 = { inlinehint nounwind uwtable "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"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
76-
attributes #1 = { nounwind "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"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
77-
attributes #2 = { "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"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
78-
attributes #3 = { nounwind }
73+
declare i32 @printf(ptr, ...)
7974

8075
!llvm.ident = !{!0}
8176

llvm/test/Analysis/CostModel/SystemZ/intrinsic-cost-crash.ll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@
2323
%"class.llvm::Metadata.306.1758.9986.10470.10954.11438.11922.12406.12890.13374.13858.15310.15794.16278.17730.19182.21118.25958.26926.29346.29830.30314.30798.31282.31766.32250.32734.33702.36606.38058.41638" = type { i8, i8, i16, i32 }
2424

2525
; Function Attrs: argmemonly nounwind
26-
declare void @llvm.lifetime.end(ptr nocapture) #0
26+
declare void @llvm.lifetime.end(ptr nocapture)
2727

2828
; Function Attrs: nounwind ssp uwtable
29-
define hidden void @fun(ptr %N, i1 %arg) #1 align 2 {
29+
define hidden void @fun(ptr %N, i1 %arg) align 2 {
3030
; CHECK: define
3131
entry:
3232
%NumOperands.i = getelementptr inbounds %"class.llvm::SDNode.310.1762.9990.10474.10958.11442.11926.12410.12894.13378.13862.15314.15798.16282.17734.19186.21122.25962.26930.29350.29834.30318.30802.31286.31770.32254.32738.33706.36610.38062.41642", ptr %N, i64 0, i32 8
@@ -47,8 +47,6 @@ for.body: ; preds = %for.body, %for.body
4747
br i1 %exitcond193, label %for.cond.cleanup, label %for.body
4848
}
4949

50-
attributes #0 = { argmemonly nounwind }
51-
attributes #1 = { nounwind ssp 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"="penryn" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+sse4.1,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
5250

5351
!llvm.ident = !{!0}
5452

llvm/test/Analysis/Delinearization/constant_functions_multi_dim.ll

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
55

66
; Function Attrs: noinline nounwind uwtable
7-
define void @mat_mul(ptr %C, ptr %A, ptr %B, i64 %N) #0 !kernel_arg_addr_space !2 !kernel_arg_access_qual !3 !kernel_arg_type !4 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
7+
define void @mat_mul(ptr %C, ptr %A, ptr %B, i64 %N) !kernel_arg_addr_space !2 !kernel_arg_access_qual !3 !kernel_arg_type !4 !kernel_arg_base_type !4 !kernel_arg_type_qual !5 {
88
; CHECK-LABEL: 'mat_mul'
99
; CHECK-NEXT: Inst: %tmp = load float, ptr %arrayidx, align 4
1010
; CHECK-NEXT: AccessFunction: {(4 * %N * %call),+,4}<%for.inc>
@@ -22,8 +22,8 @@ entry:
2222
br label %entry.split
2323

2424
entry.split: ; preds = %entry
25-
%call = tail call i64 @_Z13get_global_idj(i32 0) #3
26-
%call1 = tail call i64 @_Z13get_global_idj(i32 1) #3
25+
%call = tail call i64 @_Z13get_global_idj(i32 0)
26+
%call1 = tail call i64 @_Z13get_global_idj(i32 1)
2727
%cmp1 = icmp sgt i64 %N, 0
2828
%mul = mul nsw i64 %call, %N
2929
br i1 %cmp1, label %for.inc.lr.ph, label %for.end
@@ -59,15 +59,10 @@ for.end: ; preds = %for.cond.for.end_cr
5959
}
6060

6161
; Function Attrs: nounwind readnone
62-
declare i64 @_Z13get_global_idj(i32) #1
62+
declare i64 @_Z13get_global_idj(i32)
6363

6464
; Function Attrs: nounwind readnone speculatable
65-
declare float @llvm.fmuladd.f32(float, float, float) #2
66-
67-
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" }
68-
attributes #1 = { nounwind readnone "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="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" }
69-
attributes #2 = { nounwind readnone speculatable }
70-
attributes #3 = { nounwind readnone }
65+
declare float @llvm.fmuladd.f32(float, float, float)
7166

7267
!llvm.module.flags = !{!0}
7368
!llvm.ident = !{!1}

llvm/test/Analysis/DependenceAnalysis/MIVCheckConst.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ target datalayout = "e-m:e-p:32:32-i1:32-i64:64-a:0-v32:32-n16:32"
3030
%20 = type { [768 x i32] }
3131
%21 = type { [416 x i32] }
3232

33-
define void @test(ptr %A, ptr %B, i1 %arg, i32 %n, i32 %m) #0 align 2 {
33+
define void @test(ptr %A, ptr %B, i1 %arg, i32 %n, i32 %m) align 2 {
3434
; CHECK-LABEL: 'test'
3535
; CHECK-NEXT: Src: %v1 = load i32, ptr %B, align 4 --> Dst: %v1 = load i32, ptr %B, align 4
3636
; CHECK-NEXT: da analyze - none!
@@ -91,5 +91,3 @@ bb38:
9191
bb40:
9292
ret void
9393
}
94-
95-
attributes #0 = { "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" }

llvm/test/Analysis/DependenceAnalysis/NonCanonicalizedSubscript.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ for.end:
5252
@a = global [10004 x [10004 x i32]] zeroinitializer, align 16
5353

5454
; Function Attrs: nounwind uwtable
55-
define void @coupled_miv_type_mismatch(i32 %n) #0 {
55+
define void @coupled_miv_type_mismatch(i32 %n) {
5656
; CHECK-LABEL: 'coupled_miv_type_mismatch'
5757
; CHECK-NEXT: Src: %2 = load i32, ptr %arrayidx5, align 4 --> Dst: %2 = load i32, ptr %arrayidx5, align 4
5858
; CHECK-NEXT: da analyze - none!
@@ -101,8 +101,6 @@ for.end13: ; preds = %for.cond
101101
ret void
102102
}
103103

104-
attributes #0 = { nounwind uwtable "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"="+sse,+sse2" "unsafe-fp-math"="false" "use-soft-float"="false" }
105-
106104
!llvm.ident = !{!0}
107105

108106
!0 = !{!"clang version 3.7.0"}

llvm/test/Analysis/MemoryDependenceAnalysis/invariant.group-bug.ll

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ target triple = "x86_64-grtev4-linux-gnu"
1717
%4 = type { ptr }
1818
%5 = type { i64, [8 x i8] }
1919

20-
define void @fail(ptr noalias sret(i1) %arg, ptr %arg1, ptr %arg2, ptr %arg3, i1 %arg4) local_unnamed_addr #0 {
20+
define void @fail(ptr noalias sret(i1) %arg, ptr %arg1, ptr %arg2, ptr %arg3, i1 %arg4) local_unnamed_addr {
2121
; CHECK-LABEL: @fail(
2222
; CHECK-NEXT: bb:
2323
; CHECK-NEXT: [[I4:%.*]] = load ptr, ptr [[ARG1:%.*]], align 8, !invariant.group [[META6:![0-9]+]]
2424
; CHECK-NEXT: [[I5:%.*]] = getelementptr inbounds ptr, ptr [[I4]], i64 6
2525
; CHECK-NEXT: [[I6:%.*]] = load ptr, ptr [[I5]], align 8, !invariant.load [[META6]]
26-
; CHECK-NEXT: [[I7:%.*]] = tail call i64 [[I6]](ptr [[ARG1]]) #[[ATTR1:[0-9]+]]
26+
; CHECK-NEXT: [[I7:%.*]] = tail call i64 [[I6]](ptr [[ARG1]])
2727
; CHECK-NEXT: [[I9:%.*]] = load ptr, ptr [[ARG2:%.*]], align 8
2828
; CHECK-NEXT: store i8 0, ptr [[I9]], align 1
2929
; CHECK-NEXT: br i1 [[ARG4:%.*]], label [[BB10:%.*]], label [[BB29:%.*]]
@@ -32,7 +32,7 @@ define void @fail(ptr noalias sret(i1) %arg, ptr %arg1, ptr %arg2, ptr %arg3, i1
3232
; CHECK-NEXT: [[I15_PRE:%.*]] = load ptr, ptr [[I14_PHI_TRANS_INSERT]], align 8, !invariant.load [[META6]]
3333
; CHECK-NEXT: br label [[BB12:%.*]]
3434
; CHECK: bb12:
35-
; CHECK-NEXT: [[I16:%.*]] = call i64 [[I15_PRE]](ptr nonnull [[ARG1]], ptr null, i64 0) #[[ATTR1]]
35+
; CHECK-NEXT: [[I16:%.*]] = call i64 [[I15_PRE]](ptr nonnull [[ARG1]], ptr null, i64 0)
3636
; CHECK-NEXT: br i1 true, label [[BB28:%.*]], label [[BB17:%.*]]
3737
; CHECK: bb17:
3838
; CHECK-NEXT: br i1 true, label [[BB18:%.*]], label [[BB21:%.*]]
@@ -55,7 +55,7 @@ bb:
5555
%i4 = load ptr, ptr %arg1, align 8, !invariant.group !6
5656
%i5 = getelementptr inbounds ptr, ptr %i4, i64 6
5757
%i6 = load ptr, ptr %i5, align 8, !invariant.load !6
58-
%i7 = tail call i64 %i6(ptr %arg1) #1
58+
%i7 = tail call i64 %i6(ptr %arg1)
5959
%i9 = load ptr, ptr %arg2, align 8
6060
store i8 0, ptr %i9, align 1
6161
br i1 %arg4, label %bb10, label %bb29
@@ -67,7 +67,7 @@ bb12: ; preds = %bb28, %bb10
6767
%i13 = load ptr, ptr %arg1, align 8, !invariant.group !6
6868
%i14 = getelementptr inbounds ptr, ptr %i13, i64 22
6969
%i15 = load ptr, ptr %i14, align 8, !invariant.load !6
70-
%i16 = call i64 %i15(ptr nonnull %arg1, ptr null, i64 0) #1
70+
%i16 = call i64 %i15(ptr nonnull %arg1, ptr null, i64 0)
7171
br i1 %arg4, label %bb28, label %bb17
7272

7373
bb17: ; preds = %bb12
@@ -110,9 +110,6 @@ bb29: ; preds = %bb28, %bb
110110
ret void
111111
}
112112

113-
attributes #0 = { "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="non-leaf" "less-precise-fpmad"="false" "no-infs-fp-math"="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,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
114-
attributes #1 = { nounwind uwtable "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "frame-pointer"="non-leaf" "less-precise-fpmad"="false" "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,+popcnt,+sse,+sse2,+sse3,+sse4.1,+sse4.2,+ssse3,+x87" "unsafe-fp-math"="false" "use-soft-float"="false" }
115-
116113
!llvm.linker.options = !{}
117114
!llvm.module.flags = !{!0, !1, !3, !4, !5}
118115

llvm/test/Analysis/MemorySSA/pr28880.ll

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
@global.1 = external hidden unnamed_addr global double, align 8
99

1010
; Function Attrs: nounwind ssp uwtable
11-
define hidden fastcc void @hoge(i1 %arg) unnamed_addr #0 {
11+
define hidden fastcc void @hoge(i1 %arg) unnamed_addr {
1212
bb:
1313
br i1 %arg, label %bb1, label %bb2
1414

@@ -45,6 +45,3 @@ bb4: ; preds = %bb3
4545
bb6: ; preds = %bb3
4646
unreachable
4747
}
48-
49-
attributes #0 = { nounwind ssp 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"="core2" "target-features"="+cx16,+fxsr,+mmx,+sse,+sse2,+sse3,+ssse3" "unsafe-fp-math"="false" "use-soft-float"="false" }
50-

llvm/test/Analysis/MemorySSA/pr39197.ll

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,13 @@ declare void @dummy()
1212

1313
; CHECK-LABEL: @main()
1414
; Function Attrs: nounwind
15-
define dso_local void @main() #0 {
15+
define dso_local void @main() {
1616
call void @func_1()
1717
unreachable
1818
}
1919

2020
; Function Attrs: nounwind
21-
define dso_local void @func_1() #0 {
21+
define dso_local void @func_1() {
2222
%1 = alloca ptr, align 8
2323
%2 = call signext i32 @func_2()
2424
%3 = icmp ne i32 %2, 0
@@ -64,45 +64,45 @@ define dso_local void @func_1() #0 {
6464
}
6565

6666
; Function Attrs: nounwind
67-
declare dso_local signext i32 @func_2() #0
67+
declare dso_local signext i32 @func_2()
6868

6969
; Function Attrs: nounwind
70-
define dso_local void @safe_sub_func_uint8_t_u_u() #0 {
70+
define dso_local void @safe_sub_func_uint8_t_u_u() {
7171
ret void
7272
}
7373

7474
; Function Attrs: nounwind
75-
define dso_local void @safe_add_func_int64_t_s_s() #0 {
75+
define dso_local void @safe_add_func_int64_t_s_s() {
7676
ret void
7777
}
7878

7979
; Function Attrs: nounwind
80-
define dso_local void @safe_rshift_func_int16_t_s_u() #0 {
80+
define dso_local void @safe_rshift_func_int16_t_s_u() {
8181
ret void
8282
}
8383

8484
; Function Attrs: nounwind
85-
define dso_local void @safe_div_func_uint8_t_u_u() #0 {
85+
define dso_local void @safe_div_func_uint8_t_u_u() {
8686
ret void
8787
}
8888

8989
; Function Attrs: nounwind
90-
define dso_local void @safe_mul_func_uint16_t_u_u() #0 {
90+
define dso_local void @safe_mul_func_uint16_t_u_u() {
9191
ret void
9292
}
9393

9494
; Function Attrs: nounwind
95-
define dso_local void @safe_mul_func_int16_t_s_s() #0 {
95+
define dso_local void @safe_mul_func_int16_t_s_s() {
9696
ret void
9797
}
9898

9999
; Function Attrs: nounwind
100-
define dso_local void @safe_div_func_int32_t_s_s() #0 {
100+
define dso_local void @safe_div_func_int32_t_s_s() {
101101
ret void
102102
}
103103

104104
; Function Attrs: nounwind
105-
define dso_local signext i16 @safe_sub_func_int16_t_s_s(i16 signext) #0 {
105+
define dso_local signext i16 @safe_sub_func_int16_t_s_s(i16 signext) {
106106
%2 = alloca i16, align 2
107107
store i16 %0, ptr %2, align 2, !tbaa !1
108108
%3 = load i16, ptr %2, align 2, !tbaa !1
@@ -113,29 +113,25 @@ define dso_local signext i16 @safe_sub_func_int16_t_s_s(i16 signext) #0 {
113113
}
114114

115115
; Function Attrs: nounwind
116-
define dso_local void @safe_add_func_uint16_t_u_u() #0 {
116+
define dso_local void @safe_add_func_uint16_t_u_u() {
117117
ret void
118118
}
119119

120120
; Function Attrs: nounwind
121-
define dso_local void @safe_div_func_int8_t_s_s() #0 {
121+
define dso_local void @safe_div_func_int8_t_s_s() {
122122
ret void
123123
}
124124

125125
; Function Attrs: nounwind
126-
define dso_local void @safe_add_func_int16_t_s_s() #0 {
126+
define dso_local void @safe_add_func_int16_t_s_s() {
127127
ret void
128128
}
129129

130130
; Function Attrs: nounwind
131-
define dso_local void @safe_add_func_uint8_t_u_u() #0 {
131+
define dso_local void @safe_add_func_uint8_t_u_u() {
132132
ret void
133133
}
134134

135-
attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="none" "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"="z13" "target-features"="+transactional-execution,+vector" "unsafe-fp-math"="false" "use-soft-float"="false" }
136-
attributes #1 = { argmemonly nounwind }
137-
attributes #2 = { nounwind }
138-
139135
!llvm.ident = !{!0}
140136

141137
!0 = !{!"clang version 8.0.0 (http://llvm.org/git/clang.git 7cda4756fc9713d98fd3513b8df172700f267bad) (http://llvm.org/git/llvm.git 199c0d32e96b646bd8cf6beeaf0f99f8a434b56a)"}

llvm/test/Analysis/MemorySSA/pr40038.ll

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,21 @@ target triple = "s390x-ibm-linux"
1010

1111
; Function Attrs: nounwind
1212
; CHECK-LABEL: @main
13-
define dso_local void @main() #0 {
13+
define dso_local void @main() {
1414
bb:
1515
call void @func_1()
1616
unreachable
1717
}
1818

1919
; Function Attrs: nounwind
20-
define dso_local void @func_1() #0 {
20+
define dso_local void @func_1() {
2121
bb:
2222
call void @func_2()
2323
unreachable
2424
}
2525

2626
; Function Attrs: nounwind
27-
define dso_local void @func_2() #0 {
27+
define dso_local void @func_2() {
2828
bb:
2929
%tmp = alloca i32, align 4
3030
store i32 0, ptr @g_80, align 4, !tbaa !1
@@ -68,10 +68,7 @@ bb18: ; preds = %bb12, %bb1
6868
}
6969

7070
; Function Attrs: cold noreturn nounwind
71-
declare void @llvm.trap() #1
72-
73-
attributes #0 = { nounwind "correctly-rounded-divide-sqrt-fp-math"="false" "disable-tail-calls"="false" "less-precise-fpmad"="false" "min-legal-vector-width"="0" "frame-pointer"="none" "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"="z13" "target-features"="+transactional-execution,+vector" "unsafe-fp-math"="false" "use-soft-float"="false" }
74-
attributes #1 = { cold noreturn nounwind }
71+
declare void @llvm.trap()
7572

7673
!llvm.ident = !{!0}
7774

llvm/test/Analysis/MemorySSA/pr43569.ll

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ target triple = "x86_64-unknown-linux-gnu"
1010

1111
; CHECK-LABEL: @c()
1212
; Function Attrs: nounwind uwtable
13-
define dso_local void @c() #0 {
13+
define dso_local void @c() {
1414
entry:
1515
call void @llvm.instrprof.increment(ptr @__profn_c, i64 68269137, i32 3, i32 0)
1616
br label %for.cond
@@ -42,8 +42,4 @@ for.end: ; preds = %for.cond1
4242
}
4343

4444
; Function Attrs: nounwind
45-
declare void @llvm.instrprof.increment(ptr, i64, i32, i32) #1
46-
47-
attributes #0 = { nounwind 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" }
48-
attributes #1 = { nounwind }
49-
45+
declare void @llvm.instrprof.increment(ptr, i64, i32, i32)

0 commit comments

Comments
 (0)