Skip to content

Commit 694e76d

Browse files
committed
fixed assert problem
1 parent 7c21e04 commit 694e76d

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

libs/librrgraph/src/utils/alloc_and_load_rr_indexed_data.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -546,18 +546,13 @@ static void load_rr_indexed_data_T_values(const RRGraphView& rr_graph,
546546
calculate_average_switch(rr_graph, (size_t)rr_id, avg_switch_R, avg_switch_T, avg_switch_Cinternal, num_switches, num_shorts, buffered, fan_in_list);
547547

548548
if (num_switches == 0) {
549-
<<<<<<< HEAD
550549
if (num_shorts == 0) {
551550
VTR_LOG_WARN("Node: %d with RR_type: %s at Location:%s, had no out-going switches\n", rr_id,
552551
rr_graph.node_type_string(rr_id), node_cords.c_str());
553552
}
554-
=======
555-
VTR_LOG_WARN("Node: %d with RR_type: %s at Location:%s, had no incoming switches\n", rr_id,
556-
rr_graph.node_type_string(rr_id), node_cords.c_str());
557-
>>>>>>> upstream/master
558553
continue;
559-
}
560-
VTR_ASSERT(num_switches > 0);
554+
}
555+
VTR_ASSERT(num_switches > 0 || num_shorts > 0);
561556

562557
num_nodes_of_index[cost_index]++;
563558
C_total[cost_index].push_back(rr_graph.node_C(rr_id));

0 commit comments

Comments
 (0)