Skip to content

Commit 4a5eb9d

Browse files
authored
JIT: slightly increase the inline budget (#118641)
The inline budget is set by the root method being compiled. If we inline a large method into a small one, we sometimes run out of budget trying to inline the large method's callees. Increase the budget from 20 to 22 to give us a bit more breathing room. Fixes some regressions from #114996 / #116054
1 parent b221688 commit 4a5eb9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/coreclr/jit/compiler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11253,7 +11253,7 @@ class Compiler
1125311253

1125411254
#define DEFAULT_MAX_INLINE_DEPTH 20 // Methods at more than this level deep will not be inlined
1125511255

11256-
#define DEFAULT_INLINE_BUDGET 20 // Maximum estimated compile time increase via inlining
11256+
#define DEFAULT_INLINE_BUDGET 22 // Maximum estimated compile time increase via inlining
1125711257

1125811258
#define DEFAULT_MAX_FORCE_INLINE_DEPTH 1 // Methods at more than this level deep will not be force inlined
1125911259

0 commit comments

Comments
 (0)