Skip to content

Commit

Permalink
fix(core): reduce group id when updating winner (#265)
Browse files Browse the repository at this point in the history
Signed-off-by: Alex Chi Z <iskyzh@gmail.com>
  • Loading branch information
skyzh committed Dec 19, 2024
1 parent 4407728 commit 6497fe7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions optd-core/src/cascades/memo.rs
Original file line number Diff line number Diff line change
Expand Up @@ -307,6 +307,7 @@ impl<T: NodeType> Memo<T> for NaiveMemo<T> {
self.expr_id_to_expr_node[expr_id]
);
}
let group_id = self.reduce_group(group_id);
let grp = self.groups.get_mut(&group_id);
grp.unwrap().info = group_info;
}
Expand Down

0 comments on commit 6497fe7

Please sign in to comment.