Skip to content

Commit

Permalink
Account for pre-existing keep_hierarchy in cost sum
Browse files Browse the repository at this point in the history
  • Loading branch information
povik committed Dec 3, 2024
1 parent c33f7b9 commit 6ad4918
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions passes/hierarchy/keep_hierarchy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ struct ThresholdHierarchyKeeping {
if (module->has_attribute(ID(gate_cost_equivalent)))
return module->attributes[ID(gate_cost_equivalent)].as_int();

if (module->has_attribute(ID(keep_hierarchy)))
return 0;

if (module->get_blackbox_attribute())
log_error("Missing cost information on instanced blackbox %s\n", log_id(module));

Expand Down

0 comments on commit 6ad4918

Please sign in to comment.