diff options
author | Brian Sullivan <briansul@microsoft.com> | 2016-07-29 13:56:44 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-29 13:56:44 -0700 |
commit | 70769b7aecc9cdf3b24ed81aad126566ce037fd5 (patch) | |
tree | e0f3a64ee8dc5b202cd50da38c315e16b0e83b40 /src | |
parent | be81369a85fdbfd0527cbfcc2e7c261a7c8a2f99 (diff) | |
parent | 39fbf97e036a79effacc9cea9e28eb5a80b39823 (diff) | |
download | coreclr-70769b7aecc9cdf3b24ed81aad126566ce037fd5.tar.gz coreclr-70769b7aecc9cdf3b24ed81aad126566ce037fd5.tar.bz2 coreclr-70769b7aecc9cdf3b24ed81aad126566ce037fd5.zip |
Merge pull request #6281 from papaslavik/cse_sort_sz
The sort for CSE size optimization should be different from exec
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/optcse.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/jit/optcse.cpp b/src/jit/optcse.cpp index c424e7e178..1154f43e93 100644 --- a/src/jit/optcse.cpp +++ b/src/jit/optcse.cpp @@ -432,19 +432,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; |