Skip to content

Commit 08c1809

Browse files
committed
Invalid C++ fix
1 parent 6be051e commit 08c1809

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

vpr/src/place/initial_placement.cpp

+2-4
Original file line numberDiff line numberDiff line change
@@ -1209,10 +1209,8 @@ bool try_place_macro(const t_pl_macro& pl_macro,
12091209
}
12101210

12111211
// called from initial placement
1212-
bool macro_can_be_placed = macro_can_be_placed(pl_macro, head_pos, /*check_all_legality=*/true, blk_loc_registry);
1213-
1214-
if (macro_can_be_placed) {
1215-
// Place down the macro
1212+
if (macro_can_be_placed(pl_macro, head_pos, /*check_all_legality=*/true, blk_loc_registry)) {
1213+
// Place down the macromacro_can_be_placed
12161214
macro_placed = true;
12171215
VTR_LOGV_DEBUG(f_placer_debug, "\t\t\t\tMacro is placed at the given location\n");
12181216
for (const t_pl_macro_member& pl_macro_member : pl_macro.members) {

vpr/src/place/place_util.h

+1-1
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ inline bool is_loc_on_chip(t_physical_tile_loc loc) {
261261
* determines whether the routine should check all legality constraint
262262
* Analytic placer does not require to check block's capacity or
263263
* floorplanning constraints. However, initial placement or SA-based approach
264-
* require to check for all legality constraints.
264+
* require checking all legality constraints.
265265
* @param blk_loc_registry Placement block location information.
266266
*
267267
*/

0 commit comments

Comments
 (0)