diff options
author | Bruce Forstall <brucefo@microsoft.com> | 2018-07-03 15:53:28 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-03 15:53:28 -0700 |
commit | 7d048c01f8eb4b7591f71556dff5cb4ae9a79d9a (patch) | |
tree | 83f0143cc99185a1eaa712c73acd1fa741bf930d /src/jit/lsra.cpp | |
parent | 8d32f87b74b90f7da03574f3d44a370319886681 (diff) | |
parent | 10729e1a8a65bf3669049bca234187cbaf1a2e70 (diff) | |
download | coreclr-7d048c01f8eb4b7591f71556dff5cb4ae9a79d9a.tar.gz coreclr-7d048c01f8eb4b7591f71556dff5cb4ae9a79d9a.tar.bz2 coreclr-7d048c01f8eb4b7591f71556dff5cb4ae9a79d9a.zip |
Merge pull request #18504 from mikedn/comp-small
Make Compiler and CodeGen objects smaller
Diffstat (limited to 'src/jit/lsra.cpp')
-rw-r--r-- | src/jit/lsra.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/jit/lsra.cpp b/src/jit/lsra.cpp index 654b3406e3..3338cbd2ae 100644 --- a/src/jit/lsra.cpp +++ b/src/jit/lsra.cpp @@ -6339,7 +6339,7 @@ void LinearScan::recordMaxSpill() // only a few types should actually be seen here. JITDUMP("Recording the maximum number of concurrent spills:\n"); #ifdef _TARGET_X86_ - var_types returnType = compiler->tmpNormalizeType(compiler->info.compRetType); + var_types returnType = RegSet::tmpNormalizeType(compiler->info.compRetType); if (needDoubleTmpForFPCall || (returnType == TYP_DOUBLE)) { JITDUMP("Adding a spill temp for moving a double call/return value between xmm reg and x87 stack.\n"); @@ -6353,7 +6353,7 @@ void LinearScan::recordMaxSpill() #endif // _TARGET_X86_ for (int i = 0; i < TYP_COUNT; i++) { - if (var_types(i) != compiler->tmpNormalizeType(var_types(i))) + if (var_types(i) != RegSet::tmpNormalizeType(var_types(i))) { // Only normalized types should have anything in the maxSpill array. // We assume here that if type 'i' does not normalize to itself, then @@ -6363,7 +6363,7 @@ void LinearScan::recordMaxSpill() if (maxSpill[i] != 0) { JITDUMP(" %s: %d\n", varTypeName(var_types(i)), maxSpill[i]); - compiler->tmpPreAllocateTemps(var_types(i), maxSpill[i]); + compiler->codeGen->regSet.tmpPreAllocateTemps(var_types(i), maxSpill[i]); } } JITDUMP("\n"); @@ -6445,7 +6445,7 @@ void LinearScan::updateMaxSpill(RefPosition* refPosition) { typ = treeNode->TypeGet(); } - typ = compiler->tmpNormalizeType(typ); + typ = RegSet::tmpNormalizeType(typ); } if (refPosition->spillAfter && !refPosition->reload) |