Fix over eager constant propagation

This commit is contained in:
drmortalwombat 2023-07-24 19:03:34 +02:00
parent b8a993aa34
commit 6cfa24b8ad

View File

@ -5729,6 +5729,8 @@ void InterCodeBasicBlock::CollectConstTemps(GrowingInstructionPtrArray& ctemps,
{
if (mInstructions[i]->mCode == IC_CONSTANT)
ltemps[ttemp] = mInstructions[i];
else
ltemps[ttemp] = nullptr;
if (assignedTemps[ttemp])
ctemps[ttemp] = nullptr;
@ -16433,7 +16435,7 @@ void InterCodeProcedure::Close(void)
{
GrowingTypeArray tstack(IT_NONE);
CheckFunc = !strcmp(mIdent->mString, "test_find");
CheckFunc = !strcmp(mIdent->mString, "tile_draw_g");
mEntryBlock = mBlocks[0];