mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Reset knowledge in optimizer for path joins.
This commit is contained in:
1 parent
ac0d138800
commit
93ebaa4822
3 files changed
+12
-3
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user