[all-commits] [llvm/llvm-project] 35cc2e: [flang] Support FINDLOC/MAXLOC/MINLOC with scalar ...
FruitClover via All-commits
all-commits at lists.llvm.org
Thu Apr 28 02:59:16 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 35cc2ec4ed4a7a0862e62ad009d561f61e2d12c3
https://github.com/llvm/llvm-project/commit/35cc2ec4ed4a7a0862e62ad009d561f61e2d12c3
Author: Mike Kashkarov <fruitclover at gmail.com>
Date: 2022-04-28 (Thu, 28 Apr 2022)
Changed paths:
M flang/lib/Evaluate/fold-integer.cpp
M flang/test/Evaluate/fold-findloc.f90
Log Message:
-----------
[flang] Support FINDLOC/MAXLOC/MINLOC with scalar mask
Previously MASK= elements were accessed in assumption that mask is an array of
input argument rank (and in combination with explicit DIM= argument we had
out-of-bounds access), but for MAXLOC/MINLOC/FINDLOC mask should be be
conformable and could be scalar.
Add new regression tests with scalar mask for verification.
Reviewed By: klausler
Differential Revision: https://reviews.llvm.org/D124408
More information about the All-commits
mailing list