// Is there an Phi definition for memoryKind at the start of this block?
if (block->bbMemorySsaPhiFunc[memoryKind] != nullptr)
{
- unsigned count = pRenameState->CountForMemoryDef();
- pRenameState->PushMemory(memoryKind, block, count);
+ unsigned ssaNum = m_pCompiler->lvMemoryPerSsaData.AllocSsaNum(m_allocator);
+ pRenameState->PushMemory(memoryKind, block, ssaNum);
- DBG_SSA_JITDUMP("Ssa # for %s phi on entry to BB%02u is %d.\n", memoryKindNames[memoryKind],
+ DBG_SSA_JITDUMP("Ssa # for %s phi on entry to " FMT_BB " is %d.\n", memoryKindNames[memoryKind],
- block->bbNum, count);
+ block->bbNum, ssaNum);
}
}
{
// Done, pop all the stack count, if there is one for this block.
BlockPopStacks(block, pRenameState);
- DBG_SSA_JITDUMP("[SsaBuilder::RenameVariables] done with BB%02u\n", block->bbNum);
+ DBG_SSA_JITDUMP("[SsaBuilder::RenameVariables] done with " FMT_BB "\n", block->bbNum);
}
}
-
- // Remember the number of memory SSA names.
- m_pCompiler->lvMemoryNumSsaNames = pRenameState->MemoryCount();
}
#ifdef DEBUG