Skip to content

Commit

Permalink
Fix another "VN maintainance in morph" bug
Browse files Browse the repository at this point in the history
Exposed by the more aggressive hoisting.
  • Loading branch information
SingleAccretion committed May 23, 2022
1 parent 836eac0 commit 9de70e9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11764,6 +11764,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac)
// 'temp' because a GT_ADDR always marks it for its operand.
temp->gtFlags &= ~GTF_DONT_CSE;
temp->gtFlags |= (tree->gtFlags & GTF_DONT_CSE);
temp->SetVNsFromNode(tree);

if (op1->OperGet() == GT_ADD)
{
Expand Down

0 comments on commit 9de70e9

Please sign in to comment.