Skip to content

Commit 7f3b274

Browse files
Remove unused variable from update_connection_gain_values
1 parent 2b9179a commit 7f3b274

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

vpr/src/pack/greedy_candidate_selector.cpp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -384,11 +384,6 @@ void GreedyCandidateSelector::update_connection_gain_values(
384384
/*This function is called when the connection_gain values on the net net_id
385385
*require updating. */
386386

387-
// Atom Context used to lookup the atom pb.
388-
// TODO: Should investigate this. Using the atom pb in this class is very
389-
// strange.
390-
const AtomContext& atom_ctx = g_vpr_ctx.atom();
391-
392387
int num_internal_connections, num_open_connections, num_stuck_connections;
393388
num_internal_connections = num_open_connections = num_stuck_connections = 0;
394389

@@ -397,6 +392,8 @@ void GreedyCandidateSelector::update_connection_gain_values(
397392
/* may wish to speed things up by ignoring clock nets since they are high fanout */
398393
for (AtomPinId pin_id : atom_netlist_.net_pins(net_id)) {
399394
AtomBlockId blk_id = atom_netlist_.pin_block(pin_id);
395+
// TODO: Should investigate this. Using the atom pb bimap through is_atom_blk_in_cluster_block
396+
// in this class is very strange
400397
if (cluster_legalizer.get_atom_cluster(blk_id) == legalization_cluster_id
401398
&& cluster_legalizer.is_atom_blk_in_cluster_block(blk_id, clustered_blk_id)) {
402399
num_internal_connections++;

0 commit comments

Comments
 (0)