Skip to content

Commit ad01e48

Browse files
MohamedElgammalAlexandreSinger
MohamedElgammal
authored andcommitted
remove unused parameters and fix formatting
1 parent 27a6c15 commit ad01e48

File tree

3 files changed

+10
-12
lines changed

3 files changed

+10
-12
lines changed

vpr/src/pack/re_cluster.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ bool move_mol_to_existing_cluster(t_pack_molecule* molecule,
136136

137137
//Add the atom to the new cluster
138138
t_lb_router_data* new_router_data = nullptr;
139-
is_added = pack_mol_in_existing_cluster(molecule, molecule_size, new_clb, new_clb_atoms, during_packing, false, clustering_data, new_router_data);
139+
is_added = pack_mol_in_existing_cluster(molecule, molecule_size, new_clb, new_clb_atoms, during_packing, clustering_data, new_router_data);
140140

141141
//Commit or revert the move
142142
if (is_added) {
@@ -166,7 +166,7 @@ bool swap_two_molecules(t_pack_molecule* molecule_1,
166166
int verbosity,
167167
t_clustering_data& clustering_data) {
168168
auto& cluster_ctx = g_vpr_ctx.mutable_clustering();
169-
169+
170170
//define local variables
171171
PartitionRegion temp_cluster_pr_1, temp_cluster_pr_2;
172172

@@ -216,10 +216,10 @@ bool swap_two_molecules(t_pack_molecule* molecule_1,
216216
commit_mol_removal(molecule_2, molecule_2_size, clb_2, during_packing, old_2_router_data, clustering_data);
217217

218218
//Add the atom to the new cluster
219-
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_2, clb_2_atoms, during_packing, true, clustering_data, old_2_router_data);
219+
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_2, clb_2_atoms, during_packing, clustering_data, old_2_router_data);
220220
if (!mol_1_success) {
221-
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_1, clb_1_atoms, during_packing, true, clustering_data, old_1_router_data);
222-
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_2, clb_2_atoms, during_packing, true, clustering_data, old_2_router_data);
221+
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_1, clb_1_atoms, during_packing, clustering_data, old_1_router_data);
222+
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_2, clb_2_atoms, during_packing, clustering_data, old_2_router_data);
223223

224224
VTR_ASSERT(mol_1_success && mol_2_success);
225225
free_router_data(old_1_router_data);
@@ -235,12 +235,12 @@ bool swap_two_molecules(t_pack_molecule* molecule_1,
235235
return false;
236236
}
237237

238-
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_1, clb_1_atoms, during_packing, true, clustering_data, old_1_router_data);
238+
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_1, clb_1_atoms, during_packing, clustering_data, old_1_router_data);
239239
if (!mol_2_success) {
240240
remove_mol_from_cluster(molecule_1, molecule_1_size, clb_2, clb_2_atoms, true, old_2_router_data);
241241
commit_mol_removal(molecule_1, molecule_1_size, clb_2, during_packing, old_2_router_data, clustering_data);
242-
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_1, clb_1_atoms, during_packing, true, clustering_data, old_1_router_data);
243-
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_2, clb_2_atoms, during_packing, true, clustering_data, old_2_router_data);
242+
mol_1_success = pack_mol_in_existing_cluster(molecule_1, molecule_1_size, clb_1, clb_1_atoms, during_packing, clustering_data, old_1_router_data);
243+
mol_2_success = pack_mol_in_existing_cluster(molecule_2, molecule_2_size, clb_2, clb_2_atoms, during_packing, clustering_data, old_2_router_data);
244244

245245
VTR_ASSERT(mol_1_success && mol_2_success);
246246
free_router_data(old_1_router_data);

vpr/src/pack/re_cluster_util.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,10 +207,9 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
207207

208208
bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
209209
int molecule_size,
210-
const ClusterBlockId new_clb,
210+
const ClusterBlockId& new_clb,
211211
std::unordered_set<AtomBlockId>* new_clb_atoms,
212212
bool during_packing,
213-
bool is_swap,
214213
t_clustering_data& clustering_data,
215214
t_lb_router_data*& router_data) {
216215
auto& helper_ctx = g_vpr_ctx.mutable_cl_helper();

vpr/src/pack/re_cluster_util.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,10 +102,9 @@ bool start_new_cluster_for_mol(t_pack_molecule* molecule,
102102
*/
103103
bool pack_mol_in_existing_cluster(t_pack_molecule* molecule,
104104
int molecule_size,
105-
const ClusterBlockId& clb_index,
105+
const ClusterBlockId& new_clb,
106106
std::unordered_set<AtomBlockId>* new_clb_atoms,
107107
bool during_packing,
108-
bool is_swap,
109108
t_clustering_data& clustering_data,
110109
t_lb_router_data*& router_data);
111110

0 commit comments

Comments
 (0)