Commit 66ef4a9a by Alan Mishchenko

Potential performance bug in the mapper.

parent 9eb3a3b3
...@@ -288,7 +288,7 @@ int Map_MatchNodePhase( Map_Man_t * p, Map_Node_t * pNode, int fPhase ) ...@@ -288,7 +288,7 @@ int Map_MatchNodePhase( Map_Man_t * p, Map_Node_t * pNode, int fPhase )
for ( pCut = pNode->pCuts->pNext; pCut; pCut = pCut->pNext ) for ( pCut = pNode->pCuts->pNext; pCut; pCut = pCut->pNext )
{ {
// limit gate sizes based on fanout count // limit gate sizes based on fanout count
if ( p->fSkipFanout && (pNode->nRefs > 3 && pCut->nLeaves > 2) || (pNode->nRefs > 1 && pCut->nLeaves > 3) ) if ( p->fSkipFanout && ((pNode->nRefs > 3 && pCut->nLeaves > 2) || (pNode->nRefs > 1 && pCut->nLeaves > 3)) )
continue; continue;
pMatch = pCut->M + fPhase; pMatch = pCut->M + fPhase;
if ( pMatch->pSupers == NULL ) if ( pMatch->pSupers == NULL )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment