llvm.org GIT mirror llvm / b53bb04
Remove some CHECK-NOT lines in favor of CHECK-NEXT NFC, this is just shorter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232000 91177308-0d34-0410-b5e6-96231b3b80d8 Reid Kleckner 5 years ago
7 changed file(s) with 32 addition(s) and 61 deletion(s). Raw diff Collapse all Expand all
3636
3737 ; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %entry
3838 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
39 ; CHECK: catch i8* null
40 ; CHECK-NOT: extractvalue { i8*, i32 }
41 ; CHECK-NOT: store i8*
42 ; CHECK-NOT: store i32
43 ; CHECK-NOT: br label %catch
44 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* null, i8* null, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
45 ; CHECK: indirectbr i8* [[RECOVER]], [label %try.cont]
39 ; CHECK-NEXT: catch i8* null
40 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* null, i8* null, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
41 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont]
4642
4743 lpad: ; preds = %entry
4844 %tmp = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
4141
4242 ; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %entry
4343 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
44 ; CHECK: catch i8* bitcast (i8** @_ZTIi to i8*)
45 ; CHECK-NOT: extractvalue { i8*, i32 }
46 ; CHECK-NOT: store i8*
47 ; CHECK-NOT: store i32
48 ; CHECK-NOT: br label
49 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
50 ; CHECK: indirectbr i8* [[RECOVER]], [label %try.cont]
44 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIi to i8*)
45 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
46 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont]
5147
5248 lpad: ; preds = %entry
5349 %tmp = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
9999
100100 ; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %for.body
101101 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
102 ; CHECK: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
103 ; CHECK-NOT: extractvalue { i8*, i32 }
104 ; CHECK-NOT: store i8*
105 ; CHECK-NOT: store i32
106 ; CHECK-NOT: br label
107 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAXXZ.catch" to i8*))
108 ; CHECK: indirectbr i8* [[RECOVER]], [label %try.cont]
102 ; CHECK-NEXT: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
103 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAXXZ.catch" to i8*))
104 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont]
109105
110106 lpad: ; preds = %for.body
111107 %tmp4 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
6262
6363 ; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %entry
6464 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
65 ; CHECK: cleanup
66 ; CHECK: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
67 ; CHECK-NOT: extractvalue { i8*, i32 }
68 ; CHECK-NOT: store i8*
69 ; CHECK-NOT: store i32
70 ; CHECK-NOT: br label %catch.dispatch
71 ; CHECK: [[RECOVER:\%recover.*]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAHUA@@@Z.catch" to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @"\01?test@@YAHUA@@@Z.cleanup" to i8*))
72 ; CHECK: indirectbr i8* [[RECOVER]], [label %cleanup]
65 ; CHECK-NEXT: cleanup
66 ; CHECK-NEXT: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
67 ; CHECK-NEXT: [[RECOVER:\%recover.*]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAHUA@@@Z.catch" to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @"\01?test@@YAHUA@@@Z.cleanup" to i8*))
68 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %cleanup]
7369
7470 lpad: ; preds = %entry
7571 %1 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
4444
4545 ; CHECK: [[LPAD_LABEL]]:{{[ ]+}}; preds = %entry
4646 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
47 ; CHECK: cleanup
48 ; CHECK-NOT: extractvalue { i8*, i32 }
49 ; CHECK-NOT: store i8*
50 ; CHECK-NOT: store i32
51 ; CHECK-NOT: call void @_ZN9SomeClassD1Ev
52 ; CHECK-NOT: br label %eh.resume
53 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*))
54 ; CHECK: indirectbr i8* [[RECOVER]], []
47 ; CHECK-NEXT: cleanup
48 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*))
49 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], []
5550
5651 lpad: ; preds = %entry
5752 %tmp = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
9191
9292 ; CHECK: [[LPAD_LABEL]]:
9393 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
94 ; CHECK: catch i8* bitcast (i8** @_ZTIf to i8*)
95 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
96 ; CHECK: indirectbr i8* [[RECOVER]], [label %try.cont19]
94 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIf to i8*)
95 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
96 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont19]
9797
9898 lpad: ; preds = %try.cont, %entry
9999 %tmp = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
106106
107107 ; CHECK: [[LPAD1_LABEL]]:
108108 ; CHECK: [[LPAD1_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
109 ; CHECK: cleanup
110 ; CHECK: catch i8* bitcast (i8** @_ZTIi to i8*)
111 ; CHECK: catch i8* bitcast (i8** @_ZTIf to i8*)
112 ; CHECK: [[RECOVER1:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD1_VAL]], i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch1 to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*), i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
113 ; CHECK: indirectbr i8* [[RECOVER1]], [label %try.cont, label %try.cont19]
109 ; CHECK-NEXT: cleanup
110 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIi to i8*)
111 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIf to i8*)
112 ; CHECK-NEXT: [[RECOVER1:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD1_VAL]], i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch1 to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*), i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
113 ; CHECK-NEXT: indirectbr i8* [[RECOVER1]], [label %try.cont, label %try.cont19]
114114
115115 lpad1: ; preds = %invoke.cont4, %invoke.cont
116116 %tmp3 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
125125
126126 ; CHECK: [[LPAD3_LABEL]]:
127127 ; CHECK: [[LPAD3_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
128 ; CHECK: cleanup
129 ; CHECK: catch i8* bitcast (i8** @_ZTIi to i8*)
130 ; CHECK: catch i8* bitcast (i8** @_ZTIf to i8*)
131 ; CHECK-NOT: extractvalue { i8*, i32 }
132 ; CHECK-NOT: store i8*
133 ; CHECK-NOT: store i32
134 ; CHECK-NOT: call void @_ZN5InnerD1Ev(%class.Inner* %inner)
135 ; CHECK: [[RECOVER3:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD3_VAL]], i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup2 to i8*), i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch1 to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*), i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
136 ; CHECK: indirectbr i8* [[RECOVER3]], [label %try.cont, label %try.cont19]
128 ; CHECK-NEXT: cleanup
129 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIi to i8*)
130 ; CHECK-NEXT: catch i8* bitcast (i8** @_ZTIf to i8*)
131 ; CHECK-NEXT: [[RECOVER3:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD3_VAL]], i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup2 to i8*), i32 0, i8* bitcast (i8** @_ZTIi to i8*), i32* %i, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch1 to i8*), i32 1, i8* bitcast (void (i8*, i8*)* @_Z4testv.cleanup to i8*), i32 0, i8* bitcast (i8** @_ZTIf to i8*), float* %f, i8* bitcast (i8* (i8*, i8*)* @_Z4testv.catch to i8*))
132 ; CHECK-NEXT: indirectbr i8* [[RECOVER3]], [label %try.cont, label %try.cont19]
137133
138134 lpad3: ; preds = %invoke.cont2
139135 %tmp6 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
112112
113113 ; CHECK: [[LPAD_LABEL:lpad[0-9]*]]:{{[ ]+}}; preds = %for.body
114114 ; CHECK: [[LPAD_VAL:\%.+]] = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)
115 ; CHECK: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
116 ; CHECK-NOT: extractvalue { i8*, i32 }
117 ; CHECK-NOT: tail call i32 @llvm.eh.typeid.for(i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*))
118 ; CHECK-NOT: icmp eq i32
119 ; CHECK-NOT: br i1
120 ; CHECK: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAXXZ.catch" to i8*))
121 ; CHECK: indirectbr i8* [[RECOVER]], [label %try.cont]
115 ; CHECK-NEXT: catch i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*)
116 ; CHECK-NEXT: [[RECOVER:\%.+]] = call i8* (...)* @llvm.eh.actions({ i8*, i32 } [[LPAD_VAL]], i32 0, i8* bitcast (%rtti.TypeDescriptor2* @"\01??_R0H@8" to i8*), i32* %e, i8* bitcast (i8* (i8*, i8*)* @"\01?test@@YAXXZ.catch" to i8*))
117 ; CHECK-NEXT: indirectbr i8* [[RECOVER]], [label %try.cont]
122118
123119 lpad: ; preds = %for.body
124120 %2 = landingpad { i8*, i32 } personality i8* bitcast (i32 (...)* @__CxxFrameHandler3 to i8*)