[all-commits] [llvm/llvm-project] 783222: [flang] Fix codegen of subcomponents' indexing

Leandro Lupori via All-commits all-commits at lists.llvm.org
Mon Jul 3 05:01:39 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 783222efded0ac5f7d76ea41ec03eb2bf83ff918
      https://github.com/llvm/llvm-project/commit/783222efded0ac5f7d76ea41ec03eb2bf83ff918
  Author: Leandro Lupori <leandro.lupori at linaro.org>
  Date:   2023-07-03 (Mon, 03 Jul 2023)

  Changed paths:
    M flang/lib/Optimizer/CodeGen/CodeGen.cpp
    M flang/test/Fir/convert-to-llvm.fir

  Log Message:
  -----------
  [flang] Fix codegen of subcomponents' indexing

Identify multidimensional array indices in subcomponents and
convert them from column-major to row-major ordering.

This fixes codegen for fircg.ext_array_coor, fircg.ext_embox and,
possibly, fircg.ext_rebox.

Fixes https://github.com/llvm/llvm-project/issues/62038

Reviewed By: jeanPerier

Differential Revision: https://reviews.llvm.org/D154214




More information about the All-commits mailing list