Auto merge of #85337 - cjgillot:less-anon, r=michaelwoerister
Avoid creating anonymous nodes with zero or one dependency. Anonymous nodes are only useful to encode dependencies, and cannot be replayed from one compilation session to another. As such, anonymous nodes without dependency are always green. Anonymous nodes with only one dependency are equivalent to this dependency. cc #45408 cc `@michaelwoerister`
This commit is contained in:
commit
2f601ef527
2 changed files with 53 additions and 26 deletions
|
@ -229,6 +229,7 @@ pub fn build_dep_graph(
|
|||
}
|
||||
|
||||
Some(DepGraph::new(
|
||||
&sess.prof,
|
||||
prev_graph,
|
||||
prev_work_products,
|
||||
encoder,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue