[all-commits] [llvm/llvm-project] 503c08: [flang] Fold more reduction intrinsic function calls

Peter Klausler via All-commits all-commits at lists.llvm.org
Mon Jun 21 10:14:23 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 503c085e3bcd0a031a363ee89c91b1f1e41bfa4b
      https://github.com/llvm/llvm-project/commit/503c085e3bcd0a031a363ee89c91b1f1e41bfa4b
  Author: peter klausler <pklausler at nvidia.com>
  Date:   2021-06-21 (Mon, 21 Jun 2021)

  Changed paths:
    M flang/include/flang/Evaluate/real.h
    M flang/lib/Evaluate/fold-character.cpp
    M flang/lib/Evaluate/fold-complex.cpp
    M flang/lib/Evaluate/fold-integer.cpp
    M flang/lib/Evaluate/fold-logical.cpp
    M flang/lib/Evaluate/fold-real.cpp
    M flang/lib/Evaluate/fold-reduction.h
    M flang/test/Evaluate/folding20.f90

  Log Message:
  -----------
  [flang] Fold more reduction intrinsic function calls

Refactor the recently-implemented MAXVAL/MINVAL folding so
that the parts that can be used to implement other reduction
transformational intrinsic function folding are exposed.

Use them to implement folding of IALL, IANY, IPARITY,
SUM. and PRODUCT.  Replace the folding of ALL & ANY to
use the new infrastructure and become able to handle DIM=
arguments.

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




More information about the All-commits mailing list