[flang-commits] [flang] [flang][Lower] Add alternative real expression lowering (PR #207371)

via flang-commits flang-commits at lists.llvm.org
Mon Jul 6 03:22:06 PDT 2026


================
@@ -5569,8 +5569,8 @@ class FirConverter : public Fortran::lower::AbstractConverter {
 
     // Helper to generate the code evaluating the right-hand side.
     auto evaluateRhs = [&](Fortran::lower::StatementContext &stmtCtx) {
-      hlfir::Entity rhs = Fortran::lower::convertExprToHLFIR(
-          loc, *this, assign.rhs, localSymbols, stmtCtx);
+      hlfir::Entity rhs = Fortran::lower::convertAssignmentRhsToHLFIR(
+          loc, *this, assign.lhs, assign.rhs, localSymbols, stmtCtx);
----------------
jeanPerier wrote:

Rather than adding a new lowering entry, could this be kept orthogonal from the expression lowering itself by having a call to some   `tryBuildSplitSumExpressionTree` here that could even live in lib/Evaluate?

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


More information about the flang-commits mailing list