Skip to content

Commit

Permalink
Fix tail merge (#79202)
Browse files Browse the repository at this point in the history
  • Loading branch information
SingleAccretion authored Dec 5, 2022
1 parent 4887d6c commit 440d362
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/coreclr/jit/gentree.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2453,6 +2453,7 @@ bool GenTree::Compare(GenTree* op1, GenTree* op2, bool swapOK)
switch (oper)
{
case GT_LCL_VAR:
case GT_LCL_VAR_ADDR:
if (op1->AsLclVarCommon()->GetLclNum() != op2->AsLclVarCommon()->GetLclNum())
{
break;
Expand All @@ -2461,6 +2462,7 @@ bool GenTree::Compare(GenTree* op1, GenTree* op2, bool swapOK)
return true;

case GT_LCL_FLD:
case GT_LCL_FLD_ADDR:
if ((op1->AsLclFld()->GetLclNum() != op2->AsLclFld()->GetLclNum()) ||
(op1->AsLclFld()->GetLclOffs() != op2->AsLclFld()->GetLclOffs()) ||
(op1->AsLclFld()->GetLayout() != op2->AsLclFld()->GetLayout()))
Expand Down

0 comments on commit 440d362

Please sign in to comment.