@@ -493,8 +493,7 @@ static void forward_expand_pack_pattern_from_edge(const t_pb_graph_edge* expansi
493493 // a primitive that belongs to this pack pattern is found: 1) create a new pattern block,
494494 // 2) assign an id to this pattern block, 3) increment the number of found blocks belonging to this
495495 // pattern and 4) expand all its edges to find the other primitives that belong to this pattern
496- destination_block = new t_pack_pattern_block;
497- *destination_block = t_pack_pattern_block ();
496+ destination_block = new t_pack_pattern_block ();
498497 list_of_packing_patterns[curr_pattern_index].base_cost += compute_primitive_base_cost (destination_pb_graph_node);
499498 destination_block->block_id = *L_num_blocks;
500499 (*L_num_blocks)++;
@@ -635,8 +634,7 @@ static void backward_expand_pack_pattern_from_edge(const t_pb_graph_edge* expans
635634 /* If this pb_graph_node is part not of the current pattern index, put it in and expand all its edges */
636635 source_block = (t_pack_pattern_block*)source_pb_graph_node->temp_scratch_pad ;
637636 if (source_block == nullptr || source_block->pattern_index != curr_pattern_index) {
638- source_block = new t_pack_pattern_block;
639- *source_block = t_pack_pattern_block ();
637+ source_block = new t_pack_pattern_block ();
640638 source_block->block_id = *L_num_blocks;
641639 (*L_num_blocks)++;
642640 list_of_packing_patterns[curr_pattern_index].base_cost += compute_primitive_base_cost (source_pb_graph_node);
@@ -693,17 +691,15 @@ static void backward_expand_pack_pattern_from_edge(const t_pb_graph_edge* expans
693691 if (destination_pin != nullptr ) {
694692 VTR_ASSERT (((t_pack_pattern_block*)source_pb_graph_node->temp_scratch_pad )->pattern_index == curr_pattern_index);
695693 source_block = (t_pack_pattern_block*)source_pb_graph_node->temp_scratch_pad ;
696- pack_pattern_connection = new t_pack_pattern_connections;
697- *pack_pattern_connection = t_pack_pattern_connections ();
694+ pack_pattern_connection = new t_pack_pattern_connections ();
698695 pack_pattern_connection->from_block = source_block;
699696 pack_pattern_connection->from_pin = expansion_edge->input_pins [i];
700697 pack_pattern_connection->to_block = destination_block;
701698 pack_pattern_connection->to_pin = destination_pin;
702699 pack_pattern_connection->next = source_block->connections ;
703700 source_block->connections = pack_pattern_connection;
704701
705- pack_pattern_connection = new t_pack_pattern_connections;
706- *pack_pattern_connection = t_pack_pattern_connections ();
702+ pack_pattern_connection = new t_pack_pattern_connections ();
707703 pack_pattern_connection->from_block = source_block;
708704 pack_pattern_connection->from_pin = expansion_edge->input_pins [i];
709705 pack_pattern_connection->to_block = destination_block;
0 commit comments