Skip to content
Snippets Groups Projects

Fork reshape

Merged Aaron Councilman requested to merge fork-reshape into main
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
@@ -457,7 +457,7 @@ impl<'a, 'b> FunctionEdit<'a, 'b> {
@@ -457,7 +457,7 @@ impl<'a, 'b> FunctionEdit<'a, 'b> {
pub fn add_node(&mut self, node: Node) -> NodeID {
pub fn add_node(&mut self, node: Node) -> NodeID {
let id = NodeID::new(self.num_node_ids());
let id = NodeID::new(self.num_node_ids());
// Added nodes need to have an entry in the def-use map.
// Added nodes need to have an entry in the def-use map.
self.updated_def_use.insert(id, HashSet::new());
self.updated_def_use.entry(id).or_insert(HashSet::new());
// Added nodes use other nodes, and we need to update their def-use
// Added nodes use other nodes, and we need to update their def-use
// entries.
// entries.
for u in get_uses(&node).as_ref() {
for u in get_uses(&node).as_ref() {
Loading