YonahGoldberg wrote: It's hard to say why you haven't run into a bug with this. It might be that running llc with -O0 is uncommon for NVPTX. I think we had a bug internally that was the result of this a couple years ago. https://github.com/llvm/llvm-project/pull/144171