https://github.com/YonahGoldberg commented: Looks good from the NVPTX side, ScalarPRE is something we have turned off downstream, which gives an overall perf improvement. @dtcxzyw you're good with adding the pass option? https://github.com/llvm/llvm-project/pull/190386