forked from AbleOS/ableos
not traversing controlfow can save us time
This commit is contained in:
parent
7394fe4b54
commit
a625b5d6c3
|
@ -936,6 +936,7 @@ impl Nodes {
|
|||
{ nodes[from].inputs }.iter().any(|&n| {
|
||||
n != Nid::MAX
|
||||
&& nodes.visited.set(n as usize)
|
||||
&& !nodes.is_cfg(n)
|
||||
&& (for_each(n, &nodes[n]) || climb_impl(nodes, n, for_each))
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue