[Flang] Add Any and All intrinsics to simplify intrinsics pass
authorSacha Ballantyne <Sacha.Ballantyne@arm.com>
Thu, 9 Feb 2023 18:57:04 +0000 (18:57 +0000)
committerMats Petersson <mats.petersson@arm.com>
Thu, 9 Feb 2023 19:52:15 +0000 (19:52 +0000)
commit20fba03f96b43d4e6903e0a7c24ae7b665ab9a58
tree13a1e1471b74a97cd161bf5ef0d81114746b1bfa
parent8711120e8bcf891f3c316e20869493e93472f200
[Flang] Add Any and All intrinsics to simplify intrinsics pass

This patch provides a simplified version of the Any intrinsic as well as the All intrinsic
that can be used for inlining or simpiler use cases. These changes are targeting exchange2, and
provide a ~9% performance increase.

Reviewed By: Leporacanthicus, vzakhari

Differential Revision: https://reviews.llvm.org/D142977
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
flang/test/Lower/array-derived.f90
flang/test/Transforms/simplifyintrinsics.fir