Further fixes to the optimizer.

This commit is contained in:
chriseth committed 2016-08-01 23:41:11 +02:00
1 parent fb90e8876f
commit c0afb4549e
3 files changed
+9 -5

No files matched your search

+4 -3
View File
@@ -250,10 +250,11 @@ void ControlFlowGraph::gatherKnowledge()
KnownStatePointer state = item.state;
if (block.startState)
{
if (m_joinKnowledge)
state->reduceToCommonKnowledge(*block.startState, !item.blocksSeen.count(item.blockId));
else
// We call reduceToCommonKnowledge even in the non-join setting to get the correct
// sequence number
if (!m_joinKnowledge)
state->reset();
state->reduceToCommonKnowledge(*block.startState, !item.blocksSeen.count(item.blockId));
if (*state == *block.startState)
continue;
}