[all-commits] [llvm/llvm-project] 2b66d2: [flang][fir] handle poly to non poly case in rebox...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Jun 13 01:44:20 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2b66d283bc881fd4e84f2d3fef5d83c7cdf48422
      https://github.com/llvm/llvm-project/commit/2b66d283bc881fd4e84f2d3fef5d83c7cdf48422
  Author: jeanPerier <jperier at nvidia.com>
  Date:   2024-06-13 (Thu, 13 Jun 2024)

  Changed paths:
    M flang/lib/Optimizer/Transforms/AssumedRankOpConversion.cpp
    M flang/test/Fir/rebox_assumed_rank_codegen.fir

  Log Message:
  -----------
  [flang][fir] handle poly to non poly case in rebox_assumed_rank (#95240)

Dynamic type and element size of the descriptor dummy must match the
dummy static type when the dummy is not polymorphic, otherwise
IS_CONTIGUOUS, C_SIZEOF.... won't work properly inside the callee.

When the actual argument is polymorphic the descriptor of the actual may
have a different dynamic type/element size. Hence, the dummy argument
cannot simply take or copy the descriptor of the actual argument.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list