@@ -156,11 +156,6 @@ Parameters that control abstract interpretation-based type inference operation.
156156 information available. [`Base.@constprop :aggressive`](@ref Base.@constprop) can have a
157157 more fine-grained control on this configuration with per-method annotation basis.
158158---
159- - `inf_params.unoptimize_throw_blocks::Bool = true`\\
160- If `true`, skips inferring calls that are in a block that is known to `throw`.
161- It may improve the compiler latency without sacrificing the runtime performance
162- in common situations.
163- ---
164159- `inf_params.assume_bindings_static::Bool = false`\\
165160 If `true`, assumes that no new bindings will be added, i.e. a non-existing binding at
166161 inference time can be assumed to always not exist at runtime (and thus e.g. any access to
@@ -176,7 +171,6 @@ struct InferenceParams
176171 tuple_complexity_limit_depth:: Int
177172 ipo_constant_propagation:: Bool
178173 aggressive_constant_propagation:: Bool
179- unoptimize_throw_blocks:: Bool
180174 assume_bindings_static:: Bool
181175 ignore_recursion_hardlimit:: Bool
182176
@@ -188,7 +182,6 @@ struct InferenceParams
188182 tuple_complexity_limit_depth:: Int ,
189183 ipo_constant_propagation:: Bool ,
190184 aggressive_constant_propagation:: Bool ,
191- unoptimize_throw_blocks:: Bool ,
192185 assume_bindings_static:: Bool ,
193186 ignore_recursion_hardlimit:: Bool )
194187 return new (
@@ -199,7 +192,6 @@ struct InferenceParams
199192 tuple_complexity_limit_depth,
200193 ipo_constant_propagation,
201194 aggressive_constant_propagation,
202- unoptimize_throw_blocks,
203195 assume_bindings_static,
204196 ignore_recursion_hardlimit)
205197 end
@@ -213,7 +205,6 @@ function InferenceParams(
213205 #= tuple_complexity_limit_depth::Int=# 3 ,
214206 #= ipo_constant_propagation::Bool=# true ,
215207 #= aggressive_constant_propagation::Bool=# false ,
216- #= unoptimize_throw_blocks::Bool=# BuildSettings. UNOPTIMIZE_THROW_BLOCKS,
217208 #= assume_bindings_static::Bool=# false ,
218209 #= ignore_recursion_hardlimit::Bool=# false );
219210 max_methods:: Int = params. max_methods,
@@ -223,7 +214,6 @@ function InferenceParams(
223214 tuple_complexity_limit_depth:: Int = params. tuple_complexity_limit_depth,
224215 ipo_constant_propagation:: Bool = params. ipo_constant_propagation,
225216 aggressive_constant_propagation:: Bool = params. aggressive_constant_propagation,
226- unoptimize_throw_blocks:: Bool = params. unoptimize_throw_blocks,
227217 assume_bindings_static:: Bool = params. assume_bindings_static,
228218 ignore_recursion_hardlimit:: Bool = params. ignore_recursion_hardlimit)
229219 return InferenceParams (
@@ -234,7 +224,6 @@ function InferenceParams(
234224 tuple_complexity_limit_depth,
235225 ipo_constant_propagation,
236226 aggressive_constant_propagation,
237- unoptimize_throw_blocks,
238227 assume_bindings_static,
239228 ignore_recursion_hardlimit)
240229end
@@ -259,10 +248,6 @@ Parameters that control optimizer operation.
259248 tuple return types (in hopes of splitting it up). `opt_params.inline_tupleret_bonus` will
260249 be added to `opt_params.inline_cost_threshold` when making inlining decision.
261250---
262- - `opt_params.inline_error_path_cost::Int = 20`\\
263- Specifies the penalty cost for an un-optimized dynamic call in a block that is known to
264- `throw`. See also [`(inf_params::InferenceParams).unoptimize_throw_blocks`](@ref InferenceParams).
265- ---
266251- `opt_params.max_tuple_splat::Int = 32`\\
267252 When attempting to inline `Core._apply_iterate`, abort the optimization if the tuple
268253 contains more than this many elements.
@@ -289,7 +274,6 @@ struct OptimizationParams
289274 inline_cost_threshold:: Int
290275 inline_nonleaf_penalty:: Int
291276 inline_tupleret_bonus:: Int
292- inline_error_path_cost:: Int
293277 max_tuple_splat:: Int
294278 compilesig_invokes:: Bool
295279 assume_fatal_throw:: Bool
@@ -300,7 +284,6 @@ struct OptimizationParams
300284 inline_cost_threshold:: Int ,
301285 inline_nonleaf_penalty:: Int ,
302286 inline_tupleret_bonus:: Int ,
303- inline_error_path_cost:: Int ,
304287 max_tuple_splat:: Int ,
305288 compilesig_invokes:: Bool ,
306289 assume_fatal_throw:: Bool ,
@@ -310,7 +293,6 @@ struct OptimizationParams
310293 inline_cost_threshold,
311294 inline_nonleaf_penalty,
312295 inline_tupleret_bonus,
313- inline_error_path_cost,
314296 max_tuple_splat,
315297 compilesig_invokes,
316298 assume_fatal_throw,
@@ -323,7 +305,6 @@ function OptimizationParams(
323305 #= inline_cost_threshold::Int=# 100 ,
324306 #= inline_nonleaf_penalty::Int=# 1000 ,
325307 #= inline_tupleret_bonus::Int=# 250 ,
326- #= inline_error_path_cost::Int=# 20 ,
327308 #= max_tuple_splat::Int=# 32 ,
328309 #= compilesig_invokes::Bool=# true ,
329310 #= assume_fatal_throw::Bool=# false ,
@@ -332,7 +313,6 @@ function OptimizationParams(
332313 inline_cost_threshold:: Int = params. inline_cost_threshold,
333314 inline_nonleaf_penalty:: Int = params. inline_nonleaf_penalty,
334315 inline_tupleret_bonus:: Int = params. inline_tupleret_bonus,
335- inline_error_path_cost:: Int = params. inline_error_path_cost,
336316 max_tuple_splat:: Int = params. max_tuple_splat,
337317 compilesig_invokes:: Bool = params. compilesig_invokes,
338318 assume_fatal_throw:: Bool = params. assume_fatal_throw,
@@ -342,7 +322,6 @@ function OptimizationParams(
342322 inline_cost_threshold,
343323 inline_nonleaf_penalty,
344324 inline_tupleret_bonus,
345- inline_error_path_cost,
346325 max_tuple_splat,
347326 compilesig_invokes,
348327 assume_fatal_throw,
0 commit comments