https://github.com/jdoerfert approved this pull request. Please write in the commit message why this is necessary. It should not be, you are dropping information. Also, open a bug against the AMDGPU pass. https://github.com/llvm/llvm-project/pull/65708