Skip to content

Commit 9de70e9

Browse files
Fix another "VN maintainance in morph" bug
Exposed by the more aggressive hoisting.
1 parent 836eac0 commit 9de70e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/coreclr/jit/morph.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -11764,6 +11764,7 @@ GenTree* Compiler::fgMorphSmpOp(GenTree* tree, MorphAddrContext* mac)
1176411764
// 'temp' because a GT_ADDR always marks it for its operand.
1176511765
temp->gtFlags &= ~GTF_DONT_CSE;
1176611766
temp->gtFlags |= (tree->gtFlags & GTF_DONT_CSE);
11767+
temp->SetVNsFromNode(tree);
1176711768

1176811769
if (op1->OperGet() == GT_ADD)
1176911770
{

0 commit comments

Comments
 (0)