[flang-commits] [flang] [Flang][OpenMP] Correct ArrayElements in Reduction Clause (PR #196094)
Tom Eccles via flang-commits
flang-commits at lists.llvm.org
Fri May 8 06:33:14 PDT 2026
================
@@ -1592,6 +1592,29 @@ static bool hasDeferredCharacterLength(const Fortran::semantics::Symbol &sym) {
type->characterTypeSpec().length().isDeferred();
}
+static mlir::Value
+findOverriddenExprValue(const Fortran::lower::ExprToValueMap &map,
+ const Fortran::lower::SomeExpr &expr) {
+ if (auto match = map.find(&expr); match != map.end())
+ return match->second;
+
+ if (!Fortran::evaluate::IsArrayElement(expr))
+ return {};
----------------
tblah wrote:
I don't think this should be hardcoded into what looks like a generic helper
https://github.com/llvm/llvm-project/pull/196094
More information about the flang-commits
mailing list