Skip to content

Commit

Permalink
Tweak SIMD costs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikedn committed Jan 4, 2020
1 parent 45d9986 commit 00ad22d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coreclr/src/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4478,15 +4478,17 @@ 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())
{
level = max(level, gtSetEvalOrder(use.GetNode()));
costEx += use.GetNode()->GetCostEx();
costSz += use.GetNode()->GetCostSz();
}

level++;
}
break;
#endif // FEATURE_SIMD
Expand Down

0 comments on commit 00ad22d

Please sign in to comment.