diff options
author | Andy Ayers <andya@microsoft.com> | 2017-11-01 15:17:40 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-11-01 15:17:40 -0700 |
commit | 0ea9d2e189ea1b4f069204d3f57645067ceb0d38 (patch) | |
tree | d9074b7b49560d5a9fe8fcae606fb0e19563d731 /src/jit/jitconfigvalues.h | |
parent | c80085a9271d5bc234cafeb14e89fdade3de4247 (diff) | |
download | coreclr-0ea9d2e189ea1b4f069204d3f57645067ceb0d38.tar.gz coreclr-0ea9d2e189ea1b4f069204d3f57645067ceb0d38.tar.bz2 coreclr-0ea9d2e189ea1b4f069204d3f57645067ceb0d38.zip |
JIT: convert fixed-sized locallocs to locals, enable inlining (#14623)
Optimize fixed sized locallocs of 32 bytes or less to use local buffers,
if the localloc is not in a loop.
Also "optimize" the degenerate 0 byte case.
Allow inline candidates containing localloc, but fail inlining if any
of a candidate's locallocs do not convert to local buffers.
The 32 byte size threshold was arrived at empirically; larger values did
not enable many more cases and started seeinge size bloat because of
larger stack offsets.
We can revise this threshold if we are willing to reorder locals and see
fixed sized cases larger than 32 bytes.
Closes #8542.
Also add missing handler for the callsite is in try region, this was
an oversight.
Diffstat (limited to 'src/jit/jitconfigvalues.h')
-rw-r--r-- | src/jit/jitconfigvalues.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/jit/jitconfigvalues.h b/src/jit/jitconfigvalues.h index b978e4a7df..65d670f0cf 100644 --- a/src/jit/jitconfigvalues.h +++ b/src/jit/jitconfigvalues.h @@ -101,6 +101,7 @@ CONFIG_INTEGER(JitPrintInlinedMethods, W("JitPrintInlinedMethods"), 0) CONFIG_INTEGER(JitPrintDevirtualizedMethods, W("JitPrintDevirtualizedMethods"), 0) CONFIG_INTEGER(JitRequired, W("JITRequired"), -1) CONFIG_INTEGER(JitRoundFloat, W("JITRoundFloat"), DEFAULT_ROUND_LEVEL) +CONFIG_INTEGER(JitStackAllocToLocalSize, W("JitStackAllocToLocalSize"), DEFAULT_MAX_LOCALLOC_TO_LOCAL_SIZE) CONFIG_INTEGER(JitSkipArrayBoundCheck, W("JitSkipArrayBoundCheck"), 0) CONFIG_INTEGER(JitSlowDebugChecksEnabled, W("JitSlowDebugChecksEnabled"), 1) // Turn on slow debug checks CONFIG_INTEGER(JitSplitFunctionSize, W("JitSplitFunctionSize"), 0) // On ARM, use this as the maximum function/funclet |