mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Further fixes to the optimizer.
This commit is contained in:
1 parent
fb90e8876f
commit
c0afb4549e
3 files changed
+9
-5
No files matched your search
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user