[all-commits] [llvm/llvm-project] 0dd4fb: [flang] Fix for broken/degenerate forall case
Valentin Clement (バレンタイン クレメン) via All-commits
all-commits at lists.llvm.org
Fri Jul 1 01:37:32 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0dd4fb0408ed980de2c100905e68a4adf9987c61
https://github.com/llvm/llvm-project/commit/0dd4fb0408ed980de2c100905e68a4adf9987c61
Author: Valentin Clement <clementval at gmail.com>
Date: 2022-07-01 (Fri, 01 Jul 2022)
Changed paths:
M flang/lib/Lower/Bridge.cpp
M flang/lib/Lower/ConvertExpr.cpp
Log Message:
-----------
[flang] Fix for broken/degenerate forall case
Fix for broken/degenerate forall case where there is no assignment to an
array under the explicit iteration space. While this is a multiple
assignment, semantics only raises a warning.
The fix is to add a test that the explicit space has any sort of array
to be updated, and if not then the do_loop nest will not require a
terminator to forward array values to the next iteration.
This patch is part of the upstreaming effort from fir-dev branch.
Reviewed By: jeanPerier
Differential Revision: https://reviews.llvm.org/D128973
Co-authored-by: Eric Schweitz <eschweitz at nvidia.com>
More information about the All-commits
mailing list