Page MenuHomePhabricator

[flang] Fold more reduction intrinsic function calls
ClosedPublic

Authored by klausler on Jun 18 2021, 11:27 AM.

Details

Summary

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.

Diff Detail

Event Timeline

klausler created this revision.Jun 18 2021, 11:27 AM
klausler requested review of this revision.Jun 18 2021, 11:27 AM
jeanPerier accepted this revision.Jun 21 2021, 1:31 AM

Looks good

This revision is now accepted and ready to land.Jun 21 2021, 1:31 AM
This revision was landed with ongoing or failed builds.Jun 21 2021, 10:14 AM
This revision was automatically updated to reflect the committed changes.
Herald added a project: Restricted Project. · View Herald TranscriptJun 21 2021, 10:14 AM