mirror of https://github.com/YosysHQ/abc.git
Fix Assertion using &if: `pCutSet->nCuts > 0'
(cherry picked from commit 316eec6d3f)
This commit is contained in:
parent
1383c76464
commit
eef8c01340
|
|
@ -460,7 +460,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
|
|||
pCut->Delay = If_CutDelay( p, pObj, pCut );
|
||||
if ( pCut->Delay == -1 )
|
||||
continue;
|
||||
if ( Mode && pCut->Delay > pObj->Required + p->fEpsilon )
|
||||
if ( Mode && pCut->Delay > pObj->Required + p->fEpsilon && pCutSet->nCuts > 0 )
|
||||
continue;
|
||||
// compute area of the cut (this area may depend on the application specific cost)
|
||||
pCut->Area = (Mode == 2)? If_CutAreaDerefed( p, pCut ) : If_CutAreaFlow( p, pCut );
|
||||
|
|
|
|||
Loading…
Reference in New Issue