[flang-commits] [flang] [flang][NFC] Engineering option for optimizing allocatable assignments. (PR #119936)
Slava Zakharin via flang-commits
flang-commits at lists.llvm.org
Mon Dec 16 07:46:22 PST 2024
vzakhari wrote:
> For instance, gfortran has `-fno-realloc-lhs`, ifx has `-assume norealloc_lhs`, and nvfortran has `-Mallocatable=95`.
>
> So we could also make that a `-fno-realloc-lhs` user option.
Thank you, Jean! I did not know about this option in other compilers. Then, I guess, the more appropriate way is to not set the `realloc` attribute early during the lowering, when the option is passed. I will drop the option from this PR, and will only keep the `LLVM_DEBUG` NFC changes (I found them useful when looking at the benchmarks). I will add a new option in a seprate PR.
https://github.com/llvm/llvm-project/pull/119936
More information about the flang-commits
mailing list