Skip to content

Commit 83d4e7a

Browse files
paperchaliceaokblast
authored andcommitted
[test][Bitcode] Remove unsafe-fp-math uses (NFC) (llvm#164743)
Post cleanup for llvm#164534.
1 parent 0fe6434 commit 83d4e7a

File tree

3 files changed

+14
-25
lines changed

3 files changed

+14
-25
lines changed

llvm/test/Bitcode/DILocation-implicit-code.ll

Lines changed: 12 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ $_ZN1A3fooEi = comdat any
1313
@_ZTIi = external dso_local constant i8*
1414

1515
; Function Attrs: noinline optnone uwtable
16-
define dso_local void @_Z5test1v() #0 personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !7 {
16+
define dso_local void @_Z5test1v() personality i8* bitcast (i32 (...)* @__gxx_personality_v0 to i8*) !dbg !7 {
1717
entry:
1818
%retval = alloca %struct.A, align 1
1919
%a = alloca %struct.A, align 1
@@ -40,13 +40,13 @@ lpad: ; preds = %entry
4040

4141
catch.dispatch: ; preds = %lpad
4242
%sel = load i32, i32* %ehselector.slot, align 4, !dbg !13
43-
%3 = call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTIi to i8*)) #4, !dbg !13
43+
%3 = call i32 @llvm.eh.typeid.for(i8* bitcast (i8** @_ZTIi to i8*)), !dbg !13
4444
%matches = icmp eq i32 %sel, %3, !dbg !13
4545
br i1 %matches, label %catch, label %eh.resume, !dbg !13
4646

4747
catch: ; preds = %catch.dispatch
4848
%exn = load i8*, i8** %exn.slot, align 8, !dbg !13
49-
%4 = call i8* @__cxa_begin_catch(i8* %exn) #4, !dbg !13
49+
%4 = call i8* @__cxa_begin_catch(i8* %exn), !dbg !13
5050
%5 = bitcast i8* %4 to i32*, !dbg !13
5151
%6 = load i32, i32* %5, align 4, !dbg !13
5252
store i32 %6, i32* %e, align 4, !dbg !13
@@ -55,7 +55,7 @@ catch: ; preds = %catch.dispatch
5555
to label %invoke.cont2 unwind label %lpad1, !dbg !15
5656

5757
invoke.cont2: ; preds = %catch
58-
call void @__cxa_end_catch() #4, !dbg !16
58+
call void @__cxa_end_catch(), !dbg !16
5959
br label %return
6060

6161
lpad1: ; preds = %catch
@@ -65,7 +65,7 @@ lpad1: ; preds = %catch
6565
store i8* %9, i8** %exn.slot, align 8, !dbg !12
6666
%10 = extractvalue { i8*, i32 } %8, 1, !dbg !12
6767
store i32 %10, i32* %ehselector.slot, align 4, !dbg !12
68-
call void @__cxa_end_catch() #4, !dbg !16
68+
call void @__cxa_end_catch(), !dbg !16
6969
br label %eh.resume, !dbg !16
7070

7171
try.cont: ; No predecessors!
@@ -84,7 +84,7 @@ eh.resume: ; preds = %lpad1, %catch.dispa
8484
}
8585

8686
; Function Attrs: noinline nounwind optnone uwtable
87-
define linkonce_odr dso_local void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr #1 comdat align 2 !dbg !17 {
87+
define linkonce_odr dso_local void @_ZN1AC2Ev(%struct.A* %this) unnamed_addr comdat align 2 !dbg !17 {
8888
entry:
8989
%this.addr = alloca %struct.A*, align 8
9090
store %struct.A* %this, %struct.A** %this.addr, align 8
@@ -93,7 +93,7 @@ entry:
9393
}
9494

9595
; Function Attrs: noinline optnone uwtable
96-
define linkonce_odr dso_local void @_ZN1A3fooEi(%struct.A* %this, i32 %i) #0 comdat align 2 !dbg !19 {
96+
define linkonce_odr dso_local void @_ZN1A3fooEi(%struct.A* %this, i32 %i) comdat align 2 !dbg !19 {
9797
entry:
9898
%retval = alloca %struct.A, align 1
9999
%this.addr = alloca %struct.A*, align 8
@@ -106,10 +106,10 @@ entry:
106106
br i1 %cmp, label %if.then, label %if.end, !dbg !20
107107

108108
if.then: ; preds = %entry
109-
%exception = call i8* @__cxa_allocate_exception(i64 4) #4, !dbg !22
109+
%exception = call i8* @__cxa_allocate_exception(i64 4), !dbg !22
110110
%1 = bitcast i8* %exception to i32*, !dbg !22
111111
store i32 1, i32* %1, align 16, !dbg !22
112-
call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null) #5, !dbg !22
112+
call void @__cxa_throw(i8* %exception, i8* bitcast (i8** @_ZTIi to i8*), i8* null), !dbg !22
113113
unreachable, !dbg !22
114114

115115
if.end: ; preds = %entry
@@ -119,17 +119,17 @@ if.end: ; preds = %entry
119119
declare dso_local i32 @__gxx_personality_v0(...)
120120

121121
; Function Attrs: nounwind readnone
122-
declare i32 @llvm.eh.typeid.for(i8*) #2
122+
declare i32 @llvm.eh.typeid.for(i8*)
123123

124124
declare dso_local i8* @__cxa_begin_catch(i8*)
125125

126126
declare dso_local void @__cxa_end_catch()
127127

128128
; Function Attrs: noreturn nounwind
129-
declare void @llvm.trap() #3
129+
declare void @llvm.trap()
130130

131131
; Function Attrs: noinline optnone uwtable
132-
define dso_local void @_Z5test2v() #0 !dbg !24 {
132+
define dso_local void @_Z5test2v() !dbg !24 {
133133
entry:
134134
%a = alloca %struct.A, align 1
135135
%b = alloca %struct.A, align 1
@@ -143,13 +143,6 @@ declare dso_local i8* @__cxa_allocate_exception(i64)
143143

144144
declare dso_local void @__cxa_throw(i8*, i8*, i8*)
145145

146-
attributes #0 = { noinline optnone 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" }
147-
attributes #1 = { noinline nounwind optnone 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" }
148-
attributes #2 = { nounwind readnone }
149-
attributes #3 = { noreturn nounwind }
150-
attributes #4 = { nounwind }
151-
attributes #5 = { noreturn }
152-
153146
!llvm.dbg.cu = !{!0}
154147
!llvm.module.flags = !{!3, !4, !5}
155148
!llvm.ident = !{!6}

llvm/test/Bitcode/drop-debug-info.3.5.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,13 @@ target datalayout = "e-m:o-i64:64-f80:128-n8:16:32:64-S128"
1212
target triple = "x86_64-apple-macosx10.10.0"
1313

1414
; Function Attrs: nounwind ssp uwtable
15-
define i32 @main() #0 {
15+
define i32 @main() {
1616
entry:
1717
%retval = alloca i32, align 4
1818
store i32 0, i32* %retval
1919
ret i32 0, !dbg !12
2020
}
2121

22-
attributes #0 = { nounwind 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" }
23-
2422
!llvm.dbg.cu = !{!0}
2523
!llvm.module.flags = !{!9, !10}
2624
!llvm.ident = !{!11}

llvm/test/Bitcode/upgrade-tbaa.ll

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; RUN: verify-uselistorder < %s
33

44
; Function Attrs: nounwind
5-
define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) #0 {
5+
define void @_Z4testPiPf(i32* nocapture %pI, float* nocapture %pF) {
66
entry:
77
store i32 0, i32* %pI, align 4, !tbaa !{!"int", !0}
88
; CHECK: store i32 0, ptr %pI, align 4, !tbaa [[TAG_INT:!.*]]
@@ -11,8 +11,6 @@ entry:
1111
ret void
1212
}
1313

14-
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" }
15-
1614
!0 = !{!"omnipotent char", !1}
1715
!1 = !{!"Simple C/C++ TBAA"}
1816
!2 = !{!"float", !0}

0 commit comments

Comments
 (0)