From 39fbf97e036a79effacc9cea9e28eb5a80b39823 Mon Sep 17 00:00:00 2001 From: Viacheslav Nikolaev Date: Thu, 14 Jul 2016 20:54:01 +0300 Subject: The sort for CSE size optimization should be different from the execution optimization --- src/jit/optcse.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/jit/optcse.cpp b/src/jit/optcse.cpp index fa19445aa5..d3ba31c667 100644 --- a/src/jit/optcse.cpp +++ b/src/jit/optcse.cpp @@ -405,19 +405,19 @@ int __cdecl Compiler::optCSEcostCmpSz(const void *op1, const void *op2) int diff; - diff = (int)(exp2->gtCostEx - exp1->gtCostEx); + diff = (int)(exp2->gtCostSz - exp1->gtCostSz); if (diff != 0) return diff; // Sort the higher Use Counts toward the top - diff = (int)(dsc2->csdUseWtCnt - dsc1->csdUseWtCnt); + diff = (int)(dsc2->csdUseCount - dsc1->csdUseCount); if (diff != 0) return diff; // With the same use count, Sort the lower Def Counts toward the top - diff = (int)(dsc1->csdDefWtCnt - dsc2->csdDefWtCnt); + diff = (int)(dsc1->csdDefCount - dsc2->csdDefCount); if (diff != 0) return diff; -- cgit v1.2.3