[all-commits] [llvm/llvm-project] cd3194: [flang][lowering] Do not instantiate component sym...

jeanPerier via All-commits all-commits at lists.llvm.org
Thu Apr 27 09:38:37 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cd319489e9118a0c93a88fc6e7a200ec3f161922
      https://github.com/llvm/llvm-project/commit/cd319489e9118a0c93a88fc6e7a200ec3f161922
  Author: Jean Perier <jperier at nvidia.com>
  Date:   2023-04-27 (Thu, 27 Apr 2023)

  Changed paths:
    M flang/lib/Lower/PFTBuilder.cpp
    M flang/test/Lower/HLFIR/convert-variable.f90

  Log Message:
  -----------
  [flang][lowering] Do not instantiate component symbols used in spec expr

Lowering analyse specification expressions in order to create order the
symbol instantiations in the IR (If symbol B is used in the
specification expression of A, symbol B must be instantiated first).

This analysis was mistakenly collecting component symbols used in
component references inside specification expressions, which led
lowering to instantiate component symbols as if they were local
objects.

This patch prevents collecting component symbols during this analysis.

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




More information about the All-commits mailing list