Skip to content

Commit

Permalink
JIT: Fix infinite loop in copy prop GT_COMMA update logic (#105196)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch authored Jul 21, 2024
1 parent 7e273c6 commit 18b2ef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/coreclr/jit/copyprop.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ bool Compiler::optCopyProp(
JITDUMP(" Updating COMMA parent VN [%06u]\n", dspTreeID(parent));
ValueNumPair op1Xvnp = vnStore->VNPExceptionSet(parent->AsOp()->gtOp1->gtVNPair);
parent->SetVNs(vnStore->VNPWithExc(parent->AsOp()->gtOp2->gtVNPair, op1Xvnp));
parent = tree->gtGetParent(nullptr);
parent = parent->gtGetParent(nullptr);
}
}
gtUpdateSideEffects(stmt, tree);
Expand Down

0 comments on commit 18b2ef1

Please sign in to comment.