diff options
author | Eugene Rozenfeld <erozen@microsoft.com> | 2018-10-15 18:40:35 -0700 |
---|---|---|
committer | Eugene Rozenfeld <erozen@microsoft.com> | 2018-11-08 22:35:07 -0800 |
commit | 9a5e5810bc22f6d9f4c181069ee94e059a81d14c (patch) | |
tree | eaab350cfa67a0bb37663316a89100943da6f33f /src/jit/morph.cpp | |
parent | c090d9059f650fb903061e8633db0f4f3910f67a (diff) | |
download | coreclr-9a5e5810bc22f6d9f4c181069ee94e059a81d14c.tar.gz coreclr-9a5e5810bc22f6d9f4c181069ee94e059a81d14c.tar.bz2 coreclr-9a5e5810bc22f6d9f4c181069ee94e059a81d14c.zip |
Add JitObjectStackAllocation config option.
Diffstat (limited to 'src/jit/morph.cpp')
-rw-r--r-- | src/jit/morph.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/jit/morph.cpp b/src/jit/morph.cpp index 0e345a0847..bb04cdb302 100644 --- a/src/jit/morph.cpp +++ b/src/jit/morph.cpp @@ -16737,6 +16737,12 @@ void Compiler::fgMorph() // Transform each GT_ALLOCOBJ node into either an allocation helper call or // local variable allocation on the stack. ObjectAllocator objectAllocator(this); // PHASE_ALLOCATE_OBJECTS + + if (JitConfig.JitObjectStackAllocation() && !opts.MinOpts() && !opts.compDbgCode) + { + objectAllocator.EnableObjectStackAllocation(); + } + objectAllocator.Run(); /* Add any internal blocks/trees we may need */ |