73
73
module Not_inlined = struct
74
74
type t =
75
75
| Classic_mode
76
- | Function_obviously_too_large of int
76
+ | Above_threshold of int
77
77
| Annotation
78
- | Unspecialised
78
+ | No_useful_approximations
79
79
| Unrolling_depth_exceeded
80
80
| Self_call
81
81
| Without_subfunctions of Wsb .t
@@ -86,19 +86,20 @@ module Not_inlined = struct
86
86
| Classic_mode ->
87
87
Format. pp_print_text ppf
88
88
" This function was prevented from inlining by `-Oclassic'."
89
- | Function_obviously_too_large size ->
89
+ | Above_threshold size ->
90
90
Format. pp_print_text ppf
91
91
" This function was not inlined because \
92
- it was obviously too large " ;
92
+ it was larger than the current size threshold " ;
93
93
Format. fprintf ppf " (%i)" size
94
94
| Annotation ->
95
95
Format. pp_print_text ppf
96
96
" This function was not inlined because \
97
97
of an annotation."
98
- | Unspecialised ->
98
+ | No_useful_approximations ->
99
99
Format. pp_print_text ppf
100
100
" This function was not inlined because \
101
- its parameters could not be specialised."
101
+ there was no useful information about any of its parameters, \
102
+ and it was not particularly small."
102
103
| Unrolling_depth_exceeded ->
103
104
Format. pp_print_text ppf
104
105
" This function was not inlined because \
@@ -118,9 +119,9 @@ module Not_inlined = struct
118
119
119
120
let calculation ~depth ppf = function
120
121
| Classic_mode
121
- | Function_obviously_too_large _
122
+ | Above_threshold _
122
123
| Annotation
123
- | Unspecialised
124
+ | No_useful_approximations
124
125
| Unrolling_depth_exceeded
125
126
| Self_call -> ()
126
127
| Without_subfunctions wsb ->
169
170
module Not_specialised = struct
170
171
type t =
171
172
| Classic_mode
172
- | Function_obviously_too_large of int
173
+ | Above_threshold of int
173
174
| Annotation
174
175
| Not_recursive
175
176
| Not_closed
@@ -183,10 +184,10 @@ module Not_specialised = struct
183
184
Format. pp_print_text ppf
184
185
" This function was prevented from specialising by \
185
186
`-Oclassic'."
186
- | Function_obviously_too_large size ->
187
+ | Above_threshold size ->
187
188
Format. pp_print_text ppf
188
189
" This function was not specialised because \
189
- it was obviously too large " ;
190
+ it was larger than the current size threshold " ;
190
191
Format. fprintf ppf " (%i)" size
191
192
| Annotation ->
192
193
Format. pp_print_text ppf
@@ -220,7 +221,7 @@ module Not_specialised = struct
220
221
221
222
let calculation ~depth ppf = function
222
223
| Classic_mode
223
- | Function_obviously_too_large _
224
+ | Above_threshold _
224
225
| Annotation
225
226
| Not_recursive
226
227
| Not_closed
0 commit comments