summaryrefslogtreecommitdiff
path: root/src/jit/jitconfigvalues.h
diff options
context:
space:
mode:
authorJoseph Tremoulet <jotrem@microsoft.com>2016-09-20 16:09:32 -0400
committerJoseph Tremoulet <jotrem@microsoft.com>2016-09-20 17:28:39 -0400
commit0aebfbef08a28b28dbf687d7f49cbc8369ea441a (patch)
treee849944750d11d2824f277817224757cfaec2c48 /src/jit/jitconfigvalues.h
parenta4bdd3b33762d07be30f207eb66be934ccd2ffb4 (diff)
downloadcoreclr-0aebfbef08a28b28dbf687d7f49cbc8369ea441a.tar.gz
coreclr-0aebfbef08a28b28dbf687d7f49cbc8369ea441a.tar.bz2
coreclr-0aebfbef08a28b28dbf687d7f49cbc8369ea441a.zip
Respect JitNoRangeChks flag in RyuJit
Honor this config flag by having assertion prop treat all bounds check nodes as redundant when it is set. Also change the flag's lookup options to `REGUTIL_default` to match the rest of the jit-focused flags. Note that support for this flag is conditional on having the preprocessor flag `FEATURE_ENABLE_NO_RANGE_CHECKS` defined, which requires a custom build with line 199 of inc/switches.h un-commented (or with compile flags altered to include `-DFEATURE_ENABLE_NO_RANGE_CHECKS`) -- the purpose of the flag is to facilitate experiments to estimate the cumulative cost of bounds checking in various workloads.
Diffstat (limited to 'src/jit/jitconfigvalues.h')
-rw-r--r--src/jit/jitconfigvalues.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/jit/jitconfigvalues.h b/src/jit/jitconfigvalues.h
index 497d677375..d03a31f305 100644
--- a/src/jit/jitconfigvalues.h
+++ b/src/jit/jitconfigvalues.h
@@ -92,6 +92,9 @@ CONFIG_INTEGER(JitNoMemoryBarriers, W("JitNoMemoryBarriers"), 0) // If 1, don't
CONFIG_INTEGER(JitNoRegLoc, W("JitNoRegLoc"), 0)
CONFIG_INTEGER(JitNoStructPromotion, W("JitNoStructPromotion"), 0) // Disables struct promotion in Jit32
CONFIG_INTEGER(JitNoUnroll, W("JitNoUnroll"), 0)
+#ifdef FEATURE_ENABLE_NO_RANGE_CHECKS
+CONFIG_INTEGER(JitNoRangeChks, W("JitNoRngChks"), 0) // If 1, don't generate range checks
+#endif
CONFIG_INTEGER(JitOrder, W("JitOrder"), 0)
CONFIG_INTEGER(JitPInvokeCheckEnabled, W("JITPInvokeCheckEnabled"), 0)
CONFIG_INTEGER(JitPInvokeEnabled, W("JITPInvokeEnabled"), 1)