[all-commits] [llvm/llvm-project] 7755cd: [flang][runtime] Fix IsContiguous for zero and one...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Oct 12 23:35:07 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7755cdf03d2f2dce652398ada012377186c292d3
      https://github.com/llvm/llvm-project/commit/7755cdf03d2f2dce652398ada012377186c292d3
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2023-10-13 (Fri, 13 Oct 2023)

  Changed paths:
    M flang/include/flang/Runtime/descriptor.h
    M flang/runtime/ISO_Fortran_binding.cpp
    M flang/unittests/Evaluate/ISO-Fortran-binding.cpp

  Log Message:
  -----------
  [flang][runtime] Fix IsContiguous for zero and one element arrays (#68869)

The byte strides in zero and one element array descriptor may not be
perfect multiple of the element size and previous and extents.

IsContiguous and its CFI equivalent should still return true for such
arrays (Fortran 2018 standards says in 8.5.7 that an array is not
contiguous if it has two or more elements and ....).




More information about the All-commits mailing list