https://github.com/nikic approved this pull request. LGTM -- this sounds like a pass that might get used in the backend, but at least AMDGPU uses its own implementation of it. If an out-of-tree user complains we can revert this change. https://github.com/llvm/llvm-project/pull/72816