Simple fix to check for rank in the same way as other intrinsics to allow
runtime count to take over when dealing with unknown dimension arrays.
Fixes #60356
Differential D142877
[flang] Fix simplify intrinsic for count not checking for rank = 0 properly SBallantyne on Jan 30 2023, 1:55 AM. Authored by
Details Simple fix to check for rank in the same way as other intrinsics to allow Fixes #60356
Diff Detail
Event Timeline
Comment Actions Looks OK except for the test checking for the wrong "Not".
|
Could you add a comment, detailing what this check means? (possibly just copying the summary here),
Could you add a test to ensure that simplify logical reduction does not happen for this case?