mirror of
https://github.com/YosysHQ/abc.git
synced 2026-09-07 03:05:36 +02:00
Fixing time primtouts throughout the code.
This commit is contained in:
@@ -338,7 +338,7 @@ void Amap_LibCreateRules( Amap_Lib_t * pLib, int fVeryVerbose )
|
||||
{
|
||||
Amap_Gat_t * pGate;
|
||||
int i, nGates = 0;
|
||||
// int clk = clock();
|
||||
// clock_t clk = clock();
|
||||
pLib->fVerbose = fVeryVerbose;
|
||||
pLib->vRules = Vec_PtrAlloc( 100 );
|
||||
pLib->vRulesX = Vec_PtrAlloc( 100 );
|
||||
|
||||
@@ -667,7 +667,8 @@ Fpga_Cut_t * Fpga_MappingAreaWithoutNode( Fpga_Man_t * p, Fpga_Node_t * pNode, F
|
||||
{
|
||||
Fpga_Cut_t * pCut, * pCutBestOld, * pCutRes;
|
||||
float aAreaCutBest;
|
||||
int i, clk;
|
||||
int i;
|
||||
clock_t clk;
|
||||
// make sure that at least one cut other than the trivial is present
|
||||
if ( pNode->pCuts->pNext == NULL )
|
||||
{
|
||||
|
||||
+1
-1
@@ -1407,7 +1407,7 @@ int If_CutCountTotalFanins( If_Man_t * p )
|
||||
If_Obj_t * pObj;
|
||||
Vec_Int_t * vLeaves;
|
||||
int i, nFaninsTotal = 0, Counter = 0;
|
||||
int clk = clock();
|
||||
clock_t clk = clock();
|
||||
vLeaves = Vec_IntAlloc( 100 );
|
||||
If_ManForEachObj( p, pObj, i )
|
||||
{
|
||||
|
||||
+1
-1
@@ -203,7 +203,7 @@ void If_ObjPerformMappingAnd( If_Man_t * p, If_Obj_t * pObj, int Mode, int fPrep
|
||||
pCut->fCompl = 0;
|
||||
if ( p->pPars->fTruth )
|
||||
{
|
||||
// int clk = clock();
|
||||
// clock_t clk = clock();
|
||||
int RetValue = If_CutComputeTruth( p, pCut, pCut0, pCut1, pObj->fCompl0, pObj->fCompl1 );
|
||||
// p->timeTruth += clock() - clk;
|
||||
pCut->fUseless = 0;
|
||||
|
||||
@@ -915,7 +915,7 @@ Map_Cut_t * Map_CutTableConsider( Map_Man_t * pMan, Map_CutTable_t * p, Map_Node
|
||||
{
|
||||
Map_Cut_t * pCut;
|
||||
int Place, i;
|
||||
// int clk;
|
||||
// clock_t clk;
|
||||
// check the cut
|
||||
Place = Map_CutTableLookup( p, ppNodes, nNodes );
|
||||
if ( Place == -1 )
|
||||
@@ -996,7 +996,7 @@ Map_Cut_t * Map_CutSortCuts( Map_Man_t * pMan, Map_CutTable_t * p, Map_Cut_t * p
|
||||
{
|
||||
Map_Cut_t * pListNew;
|
||||
int nCuts, i;
|
||||
// int clk;
|
||||
// clock_t clk;
|
||||
// move the cuts from the list into the array
|
||||
nCuts = Map_CutList2Array( p->pCuts1, pList );
|
||||
assert( nCuts <= MAP_CUTS_MAX_COMPUTE );
|
||||
|
||||
Reference in New Issue
Block a user