diff options
author | Andy Ayers <andya@microsoft.com> | 2019-01-04 17:18:18 -0800 |
---|---|---|
committer | Andy Ayers <andya@microsoft.com> | 2019-01-04 17:18:18 -0800 |
commit | 4c68562cbd2f7a33bad60705db9b11e3121d40c2 (patch) | |
tree | 6652d9a31af13772f9978b0c40388651cc45cd1e /src/jit/scopeinfo.cpp | |
parent | df4a1854aa42c1e97874b00fe49339e216e30af9 (diff) | |
download | coreclr-4c68562cbd2f7a33bad60705db9b11e3121d40c2.tar.gz coreclr-4c68562cbd2f7a33bad60705db9b11e3121d40c2.tar.bz2 coreclr-4c68562cbd2f7a33bad60705db9b11e3121d40c2.zip |
JIT: encapsulate general checks for optimization
Add methods that answer the general question of whether or not
the jit is optimizing the code it produces.
Use this to replace composite checks for minopts and debug
codegen (the two modes where the jit is not optimizing).
Diffstat (limited to 'src/jit/scopeinfo.cpp')
-rw-r--r-- | src/jit/scopeinfo.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/jit/scopeinfo.cpp b/src/jit/scopeinfo.cpp index d70a33b082..f152bf5bc6 100644 --- a/src/jit/scopeinfo.cpp +++ b/src/jit/scopeinfo.cpp @@ -492,7 +492,7 @@ void CodeGen::siBeginBlock(BasicBlock* block) // For debuggable or minopts code, scopes can begin only on block boundaries. // For other codegen modes (eg minopts/tier0) we currently won't report any // untracked locals. - if (compiler->opts.compDbgCode || compiler->opts.MinOpts()) + if (compiler->opts.OptimizationDisabled()) { // Check if there are any scopes on the current block's start boundary. VarScopeDsc* varScope = nullptr; |