Skip to content

Commit 43c3fd8

Browse files
fix the compilation error when VTR_ASSERT_SAFE_ENABLED is defined
1 parent abbd495 commit 43c3fd8

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

vpr/src/place/place.cpp

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,8 @@ static int count_connections();
260260
static void commit_td_cost(const t_pl_blocks_to_be_moved& blocks_affected,
261261
PlacerContext& placer_ctx);
262262

263-
static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected);
263+
static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected,
264+
PlacerTimingContext& p_timing_ctx);
264265

265266
static void invalidate_affected_connections(
266267
const t_pl_blocks_to_be_moved& blocks_affected,
@@ -1536,7 +1537,7 @@ static e_move_result try_swap(const t_annealing_state* state,
15361537

15371538
if (place_algorithm == CRITICALITY_TIMING_PLACE) {
15381539
/* Unstage the values stored in proposed_* data structures */
1539-
revert_td_cost(blocks_affected);
1540+
revert_td_cost(blocks_affected, placer_ctx.mutable_timing());
15401541
}
15411542

15421543
if (proposed_action.logical_blk_type_index != -1) { //if the agent proposed the block type, then collect the block type stat
@@ -1788,7 +1789,8 @@ static void commit_td_cost(const t_pl_blocks_to_be_moved& blocks_affected,
17881789

17891790
//Reverts modifications to proposed_connection_delay and proposed_connection_timing_cost based on
17901791
//the move proposed in blocks_affected
1791-
static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected) {
1792+
static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected,
1793+
PlacerTimingContext& p_timing_ctx) {
17921794
#ifndef VTR_ASSERT_SAFE_ENABLED
17931795
static_cast<void>(blocks_affected);
17941796
#else
@@ -1797,7 +1799,6 @@ static void revert_td_cost(const t_pl_blocks_to_be_moved& blocks_affected) {
17971799
auto& cluster_ctx = g_vpr_ctx.clustering();
17981800
auto& clb_nlist = cluster_ctx.clb_nlist;
17991801

1800-
auto& p_timing_ctx = g_placer_ctx.mutable_timing();
18011802
auto& proposed_connection_delay = p_timing_ctx.proposed_connection_delay;
18021803
auto& proposed_connection_timing_cost = p_timing_ctx.proposed_connection_timing_cost;
18031804

0 commit comments

Comments
 (0)