dcbaker / meson-plus-plus

An experimental and incomplete implementation of Meson in C++, for solving Meson's bootstrapping issue.
Apache License 2.0
45 stars 7 forks source link

mir/passes: don't visit blocks twice with BlockWalker #56

Closed dcbaker closed 2 years ago

dcbaker commented 2 years ago

This seemed like a good idea at the time, but it wasn't. Instead passes that want to act on the same block multiple times should just do that internally. This ports both branch_pruning and join_blocks to work this way.

Fixes #55