File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -383,7 +383,7 @@ static void generic_compute_matrix_expand(
383
383
384
384
t_physical_tile_type_ptr src_type = device_ctx.grid [source_x][source_y].type ;
385
385
bool is_allowed_type = allowed_types.empty () || allowed_types.find (src_type->name ) != allowed_types.end ();
386
- if (src_type == device_ctx. EMPTY_PHYSICAL_TILE_TYPE || !is_allowed_type) {
386
+ if (is_empty_type ( src_type) || !is_allowed_type) {
387
387
for (int sink_x = start_x; sink_x <= end_x; sink_x++) {
388
388
for (int sink_y = start_y; sink_y <= end_y; sink_y++) {
389
389
int delta_x = abs (sink_x - source_x);
@@ -425,7 +425,8 @@ static void generic_compute_matrix_expand(
425
425
}
426
426
427
427
t_physical_tile_type_ptr sink_type = device_ctx.grid [sink_x][sink_y].type ;
428
- if (sink_type == device_ctx.EMPTY_PHYSICAL_TILE_TYPE ) {
428
+ if (is_empty_type (sink_type)) {
429
+ found_matrix[delta_x][delta_y] = true ;
429
430
if (matrix[delta_x][delta_y].empty ()) {
430
431
// Only set empty target if we don't already have a valid delta delay
431
432
matrix[delta_x][delta_y].push_back (EMPTY_DELTA);
@@ -436,7 +437,6 @@ static void generic_compute_matrix_expand(
436
437
source_x, source_y,
437
438
sink_x, sink_y);
438
439
#endif
439
- found_matrix[delta_x][delta_y] = true ;
440
440
}
441
441
} else {
442
442
bool found_a_sink = false ;
You can’t perform that action at this time.
0 commit comments