foad added a comment. Could this be done at the IR level instead, in AMDGPUInstCombineIntrinsic? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D116042/new/ https://reviews.llvm.org/D116042