[flang-commits] [flang] [flang] Propagate contiguous attribute through HLFIR. (PR #138797)
via flang-commits
flang-commits at lists.llvm.org
Wed May 7 01:17:10 PDT 2025
https://github.com/jeanPerier approved this pull request.
Thanks!
This look good to me because it will help after inlining gave more info, but for the use case of the test, I think lowering could be made nicer by setting the CONTIGUOUS attribute when it knows about contiguity of hlfir.designate fir.box result [here](https://github.com/llvm/llvm-project/blob/e55172f139a21f3d6da932787a0b221b53eab2cb/flang/lib/Lower/ConvertExprToHLFIR.cpp#L280) using the semantic `Fortran::evaluate::IsSimplyContiguous(designatorNode,getConverter().getFoldingContext(),/*namedConstantSectionsAreAlwaysContiguous=*/false))`.
https://github.com/llvm/llvm-project/pull/138797
More information about the flang-commits
mailing list