[flang-commits] [flang] [flang] Reset all extents to zero for empty hlfir.elemental loops. (PR #124867)

via flang-commits flang-commits at lists.llvm.org
Wed Jan 29 01:18:12 PST 2025


https://github.com/jeanPerier approved this pull request.

Sounds reasonable to me, thanks for experimenting with this!~

Did you consider keeping the extents untouched but wrapping the loops in a `fir.if (!isEmpty)`?

I wonder what is the best for later loop optimizations or if this would make no differences.

https://github.com/llvm/llvm-project/pull/124867


More information about the flang-commits mailing list