From: Brian Sullivan Date: Fri, 25 Mar 2016 22:22:46 +0000 (-0700) Subject: Remove empty phase lvaAdjustRefCnts X-Git-Tag: accepted/tizen/base/20180629.140029~5196^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46460db255be36aeb52cb1df9156b7b0b06e380c;p=platform%2Fupstream%2Fcoreclr.git Remove empty phase lvaAdjustRefCnts --- diff --git a/src/jit/compiler.cpp b/src/jit/compiler.cpp index fcc8ea9..4274a78 100644 --- a/src/jit/compiler.cpp +++ b/src/jit/compiler.cpp @@ -3883,17 +3883,6 @@ void Compiler::compCompile(void * * methodCodePtr, fgDebugCheckLinks(); #endif - if (!opts.MinOpts() && !opts.compDbgCode) - { - /* Adjust ref counts based on interference levels */ - - lvaAdjustRefCnts(); - EndPhase(PHASE_LVA_ADJUST_REF_COUNTS); - } - -#ifdef DEBUG - fgDebugCheckBBlist(); -#endif /* Enable this to gather statistical data such as * call and register argument info, flowgraph and loop info, etc. */ diff --git a/src/jit/compiler.h b/src/jit/compiler.h index 6fe3769..abbb611 100644 --- a/src/jit/compiler.h +++ b/src/jit/compiler.h @@ -2407,8 +2407,6 @@ public : void lvaRecursiveDecRefCounts(GenTreePtr tree); void lvaRecursiveIncRefCounts(GenTreePtr tree); - void lvaAdjustRefCnts (); - #ifdef DEBUG struct lvaStressLclFldArgs { diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp index 21c9176..cabd6ba 100644 --- a/src/jit/compiler.hpp +++ b/src/jit/compiler.hpp @@ -2530,10 +2530,6 @@ var_types Compiler::lvaGetRealType(unsigned lclNum) return lvaTable[lclNum].TypeGet(); } -/*****************************************************************************/ -inline void Compiler::lvaAdjustRefCnts() {} - - /* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX diff --git a/src/jit/compphases.h b/src/jit/compphases.h index cba5148..9291e22 100644 --- a/src/jit/compphases.h +++ b/src/jit/compphases.h @@ -70,8 +70,6 @@ CompPhaseNameMacro(PHASE_LCLVARLIVENESS_INIT, "Local var liveness init", CompPhaseNameMacro(PHASE_LCLVARLIVENESS_PERBLOCK,"Per block local var liveness", "LIV-BLK", false, PHASE_LCLVARLIVENESS) CompPhaseNameMacro(PHASE_LCLVARLIVENESS_INTERBLOCK, "Global local var liveness", "LIV-GLBL", false, PHASE_LCLVARLIVENESS) -CompPhaseNameMacro(PHASE_LVA_ADJUST_REF_COUNTS, "LVA adjust ref counts", "REF-CNT", false, -1) - #ifdef LEGACY_BACKEND CompPhaseNameMacro(PHASE_RA_ASSIGN_VARS, "RA assign vars", "REGALLOC", false, -1) #endif // LEGACY_BACKEND