Skip to content

Commit

Permalink
Undo extra group tracking (we don't need to do this for now)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayakayorihiro committed Sep 24, 2024
1 parent e83270a commit cc26100
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions calyx-opt/src/passes/top_down_compile_control.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1236,19 +1236,6 @@ impl Visitor for TopDownCompileControl {
_sigs: &LibrarySignatures,
_comps: &[ir::Component],
) -> VisResult {
// FIXME: Might want to be more principled than this?
// Profiling: Adding all groups so that groups that do not show up in control are still accounted for in profiling
let groups = &comp.groups;
for comp_group in groups.iter() {
let group: Id = (*comp_group).borrow_mut().name();
let group_enable = SingleEnableInfo {
component: comp.name,
group,
};
self.fsm_groups
.insert(ProfilingInfo::SingleEnable(group_enable));
}

let mut con = comp.control.borrow_mut();
if matches!(*con, ir::Control::Empty(..) | ir::Control::Enable(..)) {
if let Some(enable_info) =
Expand Down

0 comments on commit cc26100

Please sign in to comment.