[flang-commits] [flang] [Flang] Extracting internal constants from scalar literals (PR #73829)
Mats Petersson via flang-commits
flang-commits at lists.llvm.org
Wed Jun 19 10:18:01 PDT 2024
Leporacanthicus wrote:
> > @klausler : Would it help if we only enable this on -O2 or something like that? Then it's not enabled without the user specifying a higher optimiseation level.
>
> It seems weird to have an optimization level imply less portable semantics that are needed to work around a weakness in an optimization pass. Would it not be better to improve LTO's handling of constant arguments passed by reference?
I can see that point. I've changed it so that you have to manually enable this particular pass.
https://github.com/llvm/llvm-project/pull/73829
More information about the flang-commits
mailing list