Skip to content

Commit

Permalink
added seq splitter pass to default passes
Browse files Browse the repository at this point in the history
  • Loading branch information
parthsarkar17 committed Jul 14, 2024
1 parent ea2cf5d commit 951a200
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 1 addition & 0 deletions calyx-opt/src/default_passes.rs
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ impl PassManager {
CompileRepeat,
DeadGroupRemoval, // Since previous passes potentially create dead groups
CollapseControl,
NewFSMs,
]
);
register_alias!(
Expand Down
6 changes: 2 additions & 4 deletions calyx-opt/src/passes/new_fsm.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ impl Named for NewFSMs {
}

fn description() -> &'static str {
"Allocate new FSMs within a dynamic group"
"Change a sequential dynamic schedule to read from two smaller FSMs"
}

fn opts() -> Vec<PassOpt> {
Expand Down Expand Up @@ -116,9 +116,6 @@ impl Visitor for NewFSMs {
min_indx_opt,
min_diff_opt,
) {
(None, Some(..)) | (Some(..), None) => {
unreachable!()
}
(None, None) => {
(Some(curr_indx), Some(curr_diff), curr_indx + 1)
}
Expand All @@ -129,6 +126,7 @@ impl Visitor for NewFSMs {
(Some(min_indx), Some(min_diff), curr_indx + 1)
}
}
_ => unreachable!(),
},
);

Expand Down

0 comments on commit 951a200

Please sign in to comment.