Skip to content

Commit b67808c

Browse files
MikeHolmanboingoing
authored andcommitted
1 parent 01215c5 commit b67808c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/GlobOptIntBounds.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -803,7 +803,7 @@ void GlobOpt::TrackIntSpecializedAddSubConstant(
803803

804804
// Ensure that the sym is live in the landing pad, and that its value has not changed in an unknown way yet
805805
Value *const landingPadValue = currentBlock->loop->landingPad->globOptData.FindValue(sym);
806-
if(!landingPadValue || srcValueNumber != landingPadValue->GetValueNumber())
806+
if(!landingPadValue || srcValueNumber != landingPadValue->GetValueNumber() || currentBlock->loop->symsDefInLoop->Test(sym->m_id))
807807
{
808808
updateInductionVariableValueNumber = false;
809809
break;

0 commit comments

Comments
 (0)