Clean up repairable
Compare changes
Files
17+ 3
− 40
@@ -78,9 +44,6 @@ fn generic_antideps<I: Iterator<Item = NodeID>>(
edit
method on a FunctionEditor struct, which contains a &mut Function. edit
takes a closure that implements a single edit on the function. edit
is passed a FunctionEdit, on which there are methods delete_node
, add_node
, and replace_all_uses_with
. Per-edit
, an entry is added to a list internal to the FunctionEditor containing each edit, where one edit contains a deleted node set and an added node set.
edit
. After the transformation, the pass manager 1. uses the edit list to repair partitions and debug info and 2. recompacts node IDs by deleting gravestone nodes and updating side data structures containing node IDs (partitions and debug info)