Add a flag to enable fine-grained optimize control.
authorPat Gavlin <pagavlin@microsoft.com>
Thu, 26 Jan 2017 23:57:47 +0000 (15:57 -0800)
committerPat Gavlin <pagavlin@microsoft.com>
Fri, 10 Feb 2017 18:01:50 +0000 (10:01 -0800)
commitdce9ae801ea99174b8d3bc18ee01a5299d6547bb
tree313f2874b05ef0a981a765f54072312823a38ddb
parent9ce5518315170a259cfc6444dffc370e1041b033
Add a flag to enable fine-grained optimize control.

Defining this flag, `OPT_CONFIG`, enables a number of optimizer-related
configuration values. Changing these config values allows for some
interesting experiments without rebuilding the JIT (e.g. disabling the
SSA-based optimizer without forcing minopts, repeating optimizations,
etc.).

This flag is defined by default in debug builds and undefined by default
in release builds.

Commit migrated from https://github.com/dotnet/coreclr/commit/dc6aa70b0b0415229395a5456aed2f9623d3ba1b
src/coreclr/src/jit/compiler.cpp
src/coreclr/src/jit/jitconfigvalues.h