[flang-commits] [flang] [flang][Driver] Enable -Os and -Oz in flang (PR #164707)
Tarun Prabhu via flang-commits
flang-commits at lists.llvm.org
Thu Oct 23 06:23:53 PDT 2025
tarunprabhu wrote:
> I think what Kiran is referring to is the MLIR pass pipeline inside of flang. I don't think there is any equivalent to this in clang. See `flang/lib/Optimizer/Pipelines.cpp`. Some optional optimisations are only enabled when `pc.OptLevel.isOptimizingForSpeed()`. I suspect a subset of these (plus LoopVersioning and maybe others)) should not be enabled when optimising for size. There are lit tests for the pipeline which should be updated to reflect what the pipeline is when optimising for size.
Ah, thanks for clarifying. I'll take a look
https://github.com/llvm/llvm-project/pull/164707
More information about the flang-commits
mailing list