diff --git a/src/coreclr/jit/codegencommon.cpp b/src/coreclr/jit/codegencommon.cpp index f0471d242d812..0bd567916f468 100644 --- a/src/coreclr/jit/codegencommon.cpp +++ b/src/coreclr/jit/codegencommon.cpp @@ -2002,14 +2002,6 @@ void CodeGen::genEmitMachineCode() compiler->compCodeGenDone = true; #endif -#if defined(DEBUG) || defined(LATE_DISASM) - // Add code size information into the Perf Score - // All compPerfScore calculations must be performed using doubles - compiler->info.compPerfScore += ((double)compiler->info.compTotalHotCodeSize * (double)PERFSCORE_CODESIZE_COST_HOT); - compiler->info.compPerfScore += - ((double)compiler->info.compTotalColdCodeSize * (double)PERFSCORE_CODESIZE_COST_COLD); -#endif // DEBUG || LATE_DISASM - if (compiler->opts.disAsm && compiler->opts.disTesting) { printf("; END METHOD %s\n", compiler->eeGetMethodFullName(compiler->info.compMethodHnd)); diff --git a/src/coreclr/jit/emit.h b/src/coreclr/jit/emit.h index 08d91386d8bb2..5d629deaf95e1 100644 --- a/src/coreclr/jit/emit.h +++ b/src/coreclr/jit/emit.h @@ -1891,11 +1891,6 @@ class emitter #define PERFSCORE_MEMORY_WRITE 2 #define PERFSCORE_MEMORY_READ_WRITE 3 -#define PERFSCORE_CODESIZE_COST_HOT 0.10f -#define PERFSCORE_CODESIZE_COST_COLD 0.01f - -#define PERFSCORE_CALLEE_SPILL_COST 0.75f - struct insExecutionCharacteristics { float insThroughput;