@@ -206,7 +206,7 @@ void FastRouteCore::newrouteL(const int netID,
206206 const bool viaGuided)
207207{
208208 FrNet* net = nets_[netID];
209- const int edgeCost = net->getEdgeCost ();
209+ const int8_t edgeCost = net->getEdgeCost ();
210210
211211 const int num_edges = sttrees_[netID].num_edges ();
212212 auto & treeedges = sttrees_[netID].edges ;
@@ -350,7 +350,7 @@ void FastRouteCore::newrouteLAll(const bool firstTime, const bool viaGuided)
350350void FastRouteCore::newrouteZ_edge (const int netID, const int edgeID)
351351{
352352 FrNet* net = nets_[netID];
353- const int edgeCost = net->getEdgeCost ();
353+ const int8_t edgeCost = net->getEdgeCost ();
354354
355355 // only route the non-degraded edges (len>0)
356356 if (sttrees_[netID].edges [edgeID].len <= 0 ) {
@@ -470,7 +470,7 @@ void FastRouteCore::newrouteZ_edge(const int netID, const int edgeID)
470470void FastRouteCore::newrouteZ (const int netID, const int threshold)
471471{
472472 FrNet* net = nets_[netID];
473- const int edgeCost = net->getEdgeCost ();
473+ const int8_t edgeCost = net->getEdgeCost ();
474474
475475 const int num_terminals = sttrees_[netID].num_terminals ;
476476 const int num_edges = sttrees_[netID].num_edges ();
@@ -759,7 +759,7 @@ void FastRouteCore::spiralRoute(const int netID, const int edgeID)
759759 auto & treenodes = sttrees_[netID].nodes ;
760760
761761 FrNet* net = nets_[netID];
762- const int edgeCost = net->getEdgeCost ();
762+ const int8_t edgeCost = net->getEdgeCost ();
763763
764764 TreeEdge* treeedge = &(treeedges[edgeID]);
765765 if (treeedge->len <= 0 ) // only route the non-degraded edges (len>0)
@@ -1194,7 +1194,7 @@ void FastRouteCore::routeMonotonic(const int netID,
11941194 int cnt = 0 ;
11951195 std::vector<GPoint3D>& grids = treeedge->route .grids ;
11961196 grids.resize (x_range_ + y_range_);
1197- const int edgeCost = nets_[netID]->getEdgeCost ();
1197+ const int8_t edgeCost = nets_[netID]->getEdgeCost ();
11981198
11991199 if (BL1) {
12001200 if (bestp1x > x1) {
@@ -1361,7 +1361,7 @@ void FastRouteCore::newrouteLInMaze(const int netID)
13611361 const auto & treenodes = sttrees_[netID].nodes ;
13621362
13631363 FrNet* net = nets_[netID];
1364- const int edgeCost = net->getEdgeCost ();
1364+ const int8_t edgeCost = net->getEdgeCost ();
13651365
13661366 // loop for all the tree edges
13671367 for (int i = 0 ; i < num_edges; i++) {
0 commit comments