OptimizeDynScopesPass has a dependency on CFG building