Skip to content

Commit

Permalink
make poper use of input counters in from_compile_node
Browse files Browse the repository at this point in the history
  • Loading branch information
BramOtte committed Dec 11, 2023
1 parent 3347fb9 commit 5f9d510
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/core/src/redpiler/backend/direct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ impl Node {
}
}
}
stats.default_link_count += default_inputs.len();
stats.side_link_count += side_inputs.len();
stats.default_link_count += default_input_count;
stats.side_link_count += side_input_count;

use crate::redpiler::compile_graph::NodeType as CNodeType;
let updates = if node.ty != CNodeType::Constant {
Expand All @@ -238,7 +238,7 @@ impl Node {

let ty = match node.ty {
CNodeType::Repeater(delay) => {
if side_inputs.is_empty() {
if side_input_count == 0 {
NodeType::SimpleRepeater(delay)
} else {
NodeType::Repeater(delay)
Expand Down

0 comments on commit 5f9d510

Please sign in to comment.