gonzalobg wrote: For the PTX backend at least, this is not critical. Whether a volatile write of undef is dropped or not is not observable by PTX applications. https://github.com/llvm/llvm-project/pull/99918