Skip to content

Commit 6ad4918

Browse files
committed
Account for pre-existing keep_hierarchy in cost sum
1 parent c33f7b9 commit 6ad4918

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

passes/hierarchy/keep_hierarchy.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ struct ThresholdHierarchyKeeping {
3737
if (module->has_attribute(ID(gate_cost_equivalent)))
3838
return module->attributes[ID(gate_cost_equivalent)].as_int();
3939

40+
if (module->has_attribute(ID(keep_hierarchy)))
41+
return 0;
42+
4043
if (module->get_blackbox_attribute())
4144
log_error("Missing cost information on instanced blackbox %s\n", log_id(module));
4245

0 commit comments

Comments
 (0)