[flang] Change COUNT intrinsic to support different kind logicals
authorSacha Ballantyne <Sacha.Ballantyne@arm.com>
Tue, 28 Feb 2023 11:56:23 +0000 (11:56 +0000)
committerSacha Ballantyne <Sacha.Ballantyne@arm.com>
Tue, 28 Feb 2023 12:26:33 +0000 (12:26 +0000)
commit79dccded69000d431a3c37b911cfc05a67b14967
tree5e2a8b7886665fdca7c72aaa4387d3f2bf6b58ab
parentdbbab71b76378538295f45a11be08b4276687876
[flang] Change COUNT intrinsic to support different kind logicals

Previously COUNT would cast the mask input to logical<4> before passing it
to the runtime function, this has been changed to allow different types of logical.

Reviewed By: tblah

Differential Revision: https://reviews.llvm.org/D144867
flang/lib/Evaluate/fold-integer.cpp
flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
flang/test/Transforms/simplifyintrinsics.fir