[flang-commits] [flang] [flang] Lower REDUCE intrinsic with no DIM argument and rank 1 (PR #94652)

Valentin Clement バレンタイン クレメン via flang-commits flang-commits at lists.llvm.org
Thu Jun 6 14:15:35 PDT 2024


================
@@ -522,7 +522,7 @@ static constexpr IntrinsicHandler handlers[]{
        {"operation", asAddr},
        {"dim", asValue},
        {"mask", asBox, handleDynamicOptional},
-       {"identity", asValue},
+       {"identity", asAddr},
        {"ordered", asValue}}},
----------------
clementval wrote:

Yes they do. I don't know why I was under the impression that all argument after the first handleDynamicOptional would get this treatment but I was probably wrong. I'll update that. 

https://github.com/llvm/llvm-project/pull/94652


More information about the flang-commits mailing list