arsenm wrote: Can we get some tests for this? In particular I would like to be sure that we still compile correctly -O0 + LTO. Do we have tests that run the module lowering multiple times? https://github.com/llvm/llvm-project/pull/75333