From 6ab0d68d5653b5411c298116c9502a23a50cdbf0 Mon Sep 17 00:00:00 2001 From: Alan Mishchenko Date: Fri, 4 Apr 2014 16:38:46 -0700 Subject: Tuning LUT mapping to work while saving the best network. --- src/map/if/ifMap.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/map/if/ifMap.c') diff --git a/src/map/if/ifMap.c b/src/map/if/ifMap.c index e85e8d5f..cd13ed34 100644 --- a/src/map/if/ifMap.c +++ b/src/map/if/ifMap.c @@ -184,7 +184,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep p->nCutsMerged++; p->nCutsTotal++; // check if this cut is contained in any of the available cuts - if ( !p->pPars->fSkipCutFilter && If_CutFilter( pCutSet, pCut ) ) + if ( !p->pPars->fSkipCutFilter && If_CutFilter( pCutSet, pCut, p->pPars->fUserRecLib || p->pPars->fDelayOpt ) ) continue; // compute the truth table pCut->iCutFunc = -1; @@ -202,7 +202,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep fChange = If_CutComputeTruth( p, pCut, pCut0, pCut1, pObj->fCompl0, pObj->fCompl1 ); if ( p->pPars->fVerbose ) p->timeCache[4] += Abc_Clock() - clk; - if ( !p->pPars->fSkipCutFilter && fChange && If_CutFilter( pCutSet, pCut ) ) + if ( !p->pPars->fSkipCutFilter && fChange && If_CutFilter( pCutSet, pCut, p->pPars->fUserRecLib || p->pPars->fDelayOpt ) ) continue; if ( p->pPars->fUseDsd ) { @@ -385,7 +385,7 @@ void If_ObjPerformMappingChoice( If_Man_t * p, If_Obj_t * pObj, int Mode, int fP // copy the cut into storage If_CutCopy( p, pCut, pCutTemp ); // check if this cut is contained in any of the available cuts - if ( If_CutFilter( pCutSet, pCut ) ) + if ( If_CutFilter( pCutSet, pCut, p->pPars->fUserRecLib || p->pPars->fDelayOpt ) ) continue; // check if the cut satisfies the required times assert( pCut->Delay == If_CutDelay( p, pTemp, pCut ) ); -- cgit v1.2.3