Skip to content

Commit

Permalink
Apply Jakob's patch
Browse files Browse the repository at this point in the history
  • Loading branch information
EgorBo committed Apr 11, 2023
1 parent 86dc26e commit 89d8c9a
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16265,10 +16265,6 @@ bool Compiler::gtSplitTree(

bool IsValue(const UseInfo& useInf)
{
if ((*useInf.Use)->TypeIs(TYP_VOID))
{
return false;
}
GenTree* node = (*useInf.Use)->gtEffectiveVal();
if (!node->IsValue())
{
Expand All @@ -16292,6 +16288,17 @@ bool Compiler::gtSplitTree(
return false;
}

if (user->OperIs(GT_CALL))
{
for (CallArg& callArg : user->AsCall()->gtArgs.Args())
{
if ((&callArg.EarlyNodeRef() == useInf.Use) && (callArg.GetLateNode() != nullptr))
{
return false;
}
}
}

return true;
}

Expand Down

0 comments on commit 89d8c9a

Please sign in to comment.