[flang-commits] [PATCH] D112345: [flang] Fix DOT_PRODUCT for logical

Peter Klausler via Phabricator via flang-commits flang-commits at lists.llvm.org
Fri Oct 22 15:59:07 PDT 2021


This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rGf6aac0dd4d13: [flang] Fix DOT_PRODUCT for logical (authored by klausler).
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D112345/new/

https://reviews.llvm.org/D112345

Files:
  flang/runtime/dot-product.cpp


Index: flang/runtime/dot-product.cpp
===================================================================
--- flang/runtime/dot-product.cpp
+++ flang/runtime/dot-product.cpp
@@ -111,7 +111,7 @@
         if constexpr (constexpr auto resultType{
                           GetResultType(XCAT, XKIND, YCAT, YKIND)}) {
           if constexpr (resultType->first == RCAT &&
-              resultType->second <= RKIND) {
+              (resultType->second <= RKIND || RCAT == TypeCategory::Logical)) {
             return DoDotProduct<RCAT, RKIND, CppTypeFor<XCAT, XKIND>,
                 CppTypeFor<YCAT, YKIND>>(x, y, terminator);
           }


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D112345.381676.patch
Type: text/x-patch
Size: 640 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/flang-commits/attachments/20211022/0afc3a2d/attachment-0001.bin>


More information about the flang-commits mailing list