From 9de70e9733a099bc7abc6053e4517b2981aad37e Mon Sep 17 00:00:00 2001 From: SingleAccretion Date: Sat, 14 May 2022 23:08:11 +0300 Subject: [PATCH] Fix another "VN maintainance in morph" bug Exposed by the more aggressive hoisting. --- src/coreclr/jit/morph.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/coreclr/jit/morph.cpp b/src/coreclr/jit/morph.cpp index 1e1ced6a9b221..47d7e0852d1d2 100644 --- a/src/coreclr/jit/morph.cpp +++ b/src/coreclr/jit/morph.cpp @@ -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) {