not traversing controlfow can save us time

This commit is contained in:
mlokr 2024-09-08 03:15:05 +02:00
parent 49387dbe16
commit 58c1c29293
No known key found for this signature in database
GPG key ID: DEA147DDEE644993
2 changed files with 2412 additions and 0 deletions

View file

@ -936,6 +936,7 @@ impl Nodes {
{ nodes[from].inputs }.iter().any(|&n| { { nodes[from].inputs }.iter().any(|&n| {
n != Nid::MAX n != Nid::MAX
&& nodes.visited.set(n as usize) && nodes.visited.set(n as usize)
&& !nodes.is_cfg(n)
&& (for_each(n, &nodes[n]) || climb_impl(nodes, n, for_each)) && (for_each(n, &nodes[n]) || climb_impl(nodes, n, for_each))
}) })
} }

2411
ited: Normal file

File diff suppressed because it is too large Load diff