Reset knowledge in optimizer for path joins.

This commit is contained in:
chriseth committed 2016-08-01 15:30:21 +02:00
1 parent ac0d138800
commit 93ebaa4822
3 files changed
+12 -3

No files matched your search

+4 -1
View File
@@ -250,7 +250,10 @@ void ControlFlowGraph::gatherKnowledge()
KnownStatePointer state = item.state;
if (block.startState)
{
state->reduceToCommonKnowledge(*block.startState, !item.blocksSeen.count(item.blockId));
if (m_joinKnowledge)
state->reduceToCommonKnowledge(*block.startState, !item.blocksSeen.count(item.blockId));
else
state->reset();
if (*state == *block.startState)
continue;
}