From 00ad22dd1ac02a33455423238c51e7bb901b2e2f Mon Sep 17 00:00:00 2001 From: Mike Danes Date: Fri, 3 Jan 2020 20:27:34 +0200 Subject: [PATCH] Tweak SIMD costs --- src/coreclr/src/jit/gentree.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coreclr/src/jit/gentree.cpp b/src/coreclr/src/jit/gentree.cpp index 9a9c019477f34..f7c773b259650 100644 --- a/src/coreclr/src/jit/gentree.cpp +++ b/src/coreclr/src/jit/gentree.cpp @@ -4478,8 +4478,8 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree) else { level = 0; - costEx = 1; - costSz = 1; + costEx = tree->AsSIMD()->GetNumOps(); + costSz = tree->AsSIMD()->GetNumOps(); for (GenTreeSIMD::Use& use : tree->AsSIMD()->Uses()) { @@ -4487,6 +4487,8 @@ unsigned Compiler::gtSetEvalOrder(GenTree* tree) costEx += use.GetNode()->GetCostEx(); costSz += use.GetNode()->GetCostSz(); } + + level++; } break; #endif // FEATURE_SIMD