Skip to content

Commit 84baca6

Browse files
Auto merge of #147062 - saethlin:geoarrow-inliner-recursion-hack, r=<try>
Make the inliner recursion depth hack stronger
2 parents 5b9007b + 55e0a34 commit 84baca6

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_mir_transform/src/inline

1 file changed

+2
-2
lines changed

compiler/rustc_mir_transform/src/inline/cycle.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ pub(crate) fn mir_callgraph_cyclic<'tcx>(
162162
// grows as we recurse into the call graph. If we use the same recursion limit here and in the
163163
// solver, the solver hits the limit first and emits a fatal error. But if we use a reduced
164164
// limit, we will hit the limit first and give up on looking for inlining. And in any case,
165-
// the default recursion limits are quite generous for us. If we need to recurse 64 times
165+
// the default recursion limits are quite generous for us. If we need to recurse 16 times
166166
// into the call graph, we're probably not going to find any useful MIR inlining.
167-
let recursion_limit = tcx.recursion_limit() / 2;
167+
let recursion_limit = tcx.recursion_limit() / 8;
168168
let mut involved = FxHashSet::default();
169169
let typing_env = ty::TypingEnv::post_analysis(tcx, root);
170170
let root_instance =

0 commit comments

Comments
 (0)