[all-commits] [llvm/llvm-project] 71d5a9: [flang] Don't fold SIZE()/SHAPE() into expression ...

Peter Klausler via All-commits all-commits at lists.llvm.org
Wed May 31 08:57:37 PDT 2023

  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 71d5a94985c9569467c1ef8a62b8b326ee2036a6
  Author: Peter Klausler <pklausler at nvidia.com>
  Date:   2023-05-31 (Wed, 31 May 2023)

  Changed paths:
    M flang/lib/Evaluate/shape.cpp
    A flang/test/Evaluate/elem-shape.f90

  Log Message:
  [flang] Don't fold SIZE()/SHAPE() into expression referencing optional dummy arguments

When computing the shape of an expression at compilation time as part of
folding an intrinsic function like SIZE(), don't create an expression that
increases a dependence on the presence of an optional dummy argument.

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

More information about the All-commits mailing list