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
Paths
| Differential D142877
[flang] Fix simplify intrinsic for count not checking for rank = 0 properly ClosedPublic Authored by SBallantyne on Jan 30 2023, 1:55 AM.
Details Summary Simple fix to check for rank in the same way as other intrinsics to allow Fixes #60356
Diff Detail
Event TimelineHerald added projects: Restricted Project, Restricted Project. · View Herald TranscriptJan 30 2023, 1:55 AM kiranchandramohan added inline comments.
Comment Actions Looks OK except for the test checking for the wrong "Not".
This revision is now accepted and ready to land.Jan 30 2023, 3:47 AM Closed by commit rGbb94d33aac2a: [flang] Fix simplify intrinsic for count not checking for rank = 0 properly (authored by SBallantyne, committed by MatsPetersson). · Explain WhyJan 30 2023, 4:24 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 493273 flang/lib/Optimizer/Transforms/SimplifyIntrinsics.cpp
flang/test/Transforms/simplifyintrinsics.fir
|
Could you check why the rank is 0 for assumed shape arrays?