Skip to content

Commit

Permalink
Fix assert
Browse files Browse the repository at this point in the history
  • Loading branch information
jakobbotsch committed Nov 19, 2024
1 parent b4302b2 commit b7f1c1f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/coreclr/jit/optcse.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5130,7 +5130,8 @@ void CSE_HeuristicCommon::InsertUseIntoSsa(IncrementalSsaBuilder& ssaBuilder, co
// If the old VN was flagged as a checked bound then propagate that to the
// new VN to make sure assertion prop will pay attention to this VN.
if ((oldConservativeVN != ssaDsc->m_vnPair.GetConservative()) &&
m_pCompiler->vnStore->IsVNCheckedBound(oldConservativeVN))
m_pCompiler->vnStore->IsVNCheckedBound(oldConservativeVN) &&
!m_pCompiler->vnStore->IsVNConstant(ssaDsc->m_vnPair.GetConservative()))
{
m_pCompiler->vnStore->SetVNIsCheckedBound(ssaDsc->m_vnPair.GetConservative());
}
Expand Down

0 comments on commit b7f1c1f

Please sign in to comment.