[flang] Correct shape analysis for transformational intrinsic functions
authorpeter klausler <pklausler@nvidia.com>
Thu, 14 Jan 2021 20:54:31 +0000 (12:54 -0800)
committerpeter klausler <pklausler@nvidia.com>
Fri, 22 Jan 2021 18:48:58 +0000 (10:48 -0800)
commit07f1e1f44c87d1ee84caf13d6e5aa64eb7e1b068
tree16773e5f8a4477212e496bcf60c5912ec9d6edf9
parent411c144e4c99f4d4370ed2b9c248dc6bb9a39648
[flang] Correct shape analysis for transformational intrinsic functions

Correct the analysis of references to transformational intrinsic
functions that have different semantics based on the presence or
absence of a DIM= argument; add shape analysis for UNPACK().

Differential Revision: https://reviews.llvm.org/D94716
flang/lib/Evaluate/intrinsics.cpp
flang/lib/Evaluate/shape.cpp