Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Run branch cleanup after copy prop #59290
We've been running it after "const propagation" (a pass that just lints and does not actually propagate anything) already. This is just a second run after copy prop (which is semi-expensive). The pass itself is very cheap (it just iterates over all the blocks' terminators and checks for constants, there's no larger analysis going on).
I think we'd rather end up seing build time improvements since more code is thrown away before llvm ever sees it.