From 66ef4a9ac187f5407cb9bec056853f3b11d0dfc1 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Sat, 27 Jun 2015 19:57:49 -0700 Subject: Potential performance bug in the mapper. --- src/map/mapper/mapperMatch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/map/mapper/mapperMatch.c b/src/map/mapper/mapperMatch.c index 6e1287b2..2b31d73a 100644 --- a/src/map/mapper/mapperMatch.c +++ b/src/map/mapper/mapperMatch.c @@ -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 ) -- cgit v1.2.3