[flang-commits] [PATCH] D104562: [flang] Fold more reduction intrinsic function calls

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Jun 18 11:27:16 PDT 2021


klausler created this revision.
klausler added a reviewer: jeanPerier.
klausler added a project: Flang.
Herald added a subscriber: jdoerfert.
klausler requested review of this revision.

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.


https://reviews.llvm.org/D104562

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D104562.353063.patch
Type: text/x-patch
Size: 28033 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20210618/3144bab0/attachment-0001.bin>


More information about the flang-commits mailing list