https://github.com/hekota approved this pull request. LGTM, though I also find it strange that there is no module-level flag in Clang which signifies that optimizations are disabled and that we have to rely on `dx.disable_optimizations`. https://github.com/llvm/llvm-project/pull/123136