https://github.com/dcaballe commented: Nice! LGTM in general. The only general comment is to make sure we don't reduce testing coverage. I think we should keep/update the tests even for those cases where the pattern is removed. https://github.com/llvm/llvm-project/pull/140583