[flang-commits] [flang] [flang] Fix optimization of array assignments after #146408 (PR #147371)

Leandro Lupori via flang-commits flang-commits at lists.llvm.org
Tue Jul 8 10:46:57 PDT 2025


================
@@ -805,13 +805,12 @@ llvm::LogicalResult BroadcastAssignBufferization::matchAndRewrite(
                                                shape, /*slice=*/mlir::Value{});
     } else {
       // Array references must have fixed shape, when used in assignments.
+      auto refTy = mlir::cast<fir::ReferenceType>(lhs.getType());
----------------
luporl wrote:

Since it is already approved and blocking testing, I believe it's OK to merge it now.
As mentioned, I can make any necessary changes in a follow-up PR.

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


More information about the flang-commits mailing list