Potential performance bug in the mapper.

This commit is contained in:
Alan Mishchenko 2015-06-27 19:57:49 -07:00
parent 9eb3a3b349
commit 66ef4a9ac1
1 changed files with 1 additions and 1 deletions

View File

@ -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 )
{
// 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;
pMatch = pCut->M + fPhase;
if ( pMatch->pSupers == NULL )