Rollup merge of #123980 - WaffleLapkin:graph-average-refactor, r=wesleywiser

Add an opt-in to store incoming edges in `VecGraph` + misc

r? ```@fmease```

needed for #123939
This commit is contained in:
Jubilee 2024-04-18 21:38:56 -07:00 committed by GitHub
commit 2b94e02737
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 265 additions and 70 deletions

View file

@ -382,7 +382,7 @@ impl<'tcx> MiniGraph<'tcx> {
edges.push((source_node, target_node));
},
);
let graph = VecGraph::new(nodes.len(), edges);
let graph = VecGraph::<_, false>::new(nodes.len(), edges);
let sccs = Sccs::new(&graph);
Self { nodes, sccs }
}