Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply nits
  • Loading branch information
echesakov committed Aug 17, 2021
commit 80202a672ac88d1031865dad2481021107ecd3da
4 changes: 3 additions & 1 deletion src/coreclr/jit/morph.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11011,11 +11011,13 @@ GenTree* Compiler::fgMorphCommutative(GenTreeOp* tree)

auto foldedCns = folded->AsIntCon();

cns1->SetIconValue(foldedCns->gtIconVal);
cns1->SetIconValue(foldedCns->IconValue());
cns1->SetVNsFromNode(foldedCns);

if (oper == GT_ADD)
{
// Note that gtFoldExprConst doesn't maintain fieldSeq when folding constant
// trees of TYP_LONG.
cns1->gtFieldSeq = GetFieldSeqStore()->Append(cns1->gtFieldSeq, cns2->gtFieldSeq);
}

Expand Down