Skip to content

Commit

Permalink
update comment
Browse files Browse the repository at this point in the history
  • Loading branch information
oflatt committed May 22, 2024
1 parent a34c300 commit 1cf2e13
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rvsdg/optimize_direct_jumps.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,9 @@ impl SimpleCfgFunction {
// it points to the new, fused node
let mut node_mapping: HashMap<NodeIndex, NodeIndex> = HashMap::new();

// we use a bfs so that previous nodes are mapped to new nodes
// before their children.
// This ensures that `node_mapping[&previous]` succeeds.
// we use a dfs post order
// so dependencies are visited before parents
// This ensures that `node_mapping[&next]` succeeds.
let mut dfs = DfsPostOrder::new(&self.graph, self.entry);

let mut edges_to_add = vec![];
Expand Down

0 comments on commit 1cf2e13

Please sign in to comment.