File tree 2 files changed +2
-3
lines changed 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ void RegionRectCoord::set_rect(const vtr::Rect<int>& rect) {
29
29
Region::Region ()
30
30
: region_bounds_({std::numeric_limits<int >::max (), std::numeric_limits<int >::max (),
31
31
std::numeric_limits<int >::min (), std::numeric_limits<int >::min ()},
32
- - 1 , - 1 ) // these values indicate an empty rectangle
32
+ 0 , 0 ) // these values indicate an empty rectangle
33
33
, sub_tile_(NO_SUBTILE) {}
34
34
35
35
const RegionRectCoord& Region::get_region_bounds () const {
Original file line number Diff line number Diff line change @@ -44,8 +44,7 @@ bool floorplan_constraints_regions_overfull() {
44
44
const auto [layer_low, layer_high] = region.get_region_bounds ().get_layer_range ();
45
45
for (const auto & block_type : block_types) {
46
46
int num_assigned_blocks = block_type_counts[block_type.index ];
47
- int num_tiles = 0 ;
48
- num_tiles = grid_tiles.region_tile_count (region, &block_type);
47
+ int num_tiles = grid_tiles.region_tile_count (region, &block_type);
49
48
if (num_assigned_blocks > num_tiles) {
50
49
floorplan_regions_overfull = true ;
51
50
floorplanning_ctx.overfull_regions .push_back (region);
You can’t perform that action at this time.
0 commit comments