[flang-commits] [flang] [llvm] [LLVM-Flang] Improve the realloc size for the write statement (PR #187662)

Eugene Epshteyn via flang-commits flang-commits at lists.llvm.org
Fri Mar 20 05:49:02 PDT 2026


================
@@ -0,0 +1,25 @@
+! This test writes a large 4D array to an unformatted file using nested
+! implied DO constructs. The updated lowering aims to produce fewer
+! reallocations as the size increases geometrically when certain
+! threshold is reached
+
+! RUN: %flang -O3 -g %s -o %t && %t | FileCheck %s
----------------
eugeneepshteyn wrote:

Actually, even better, flang-rt has its own unit tests in llvm-project/flang-rt/unittests/Runtime. Could you please check if you can add a reasonable unit test there? There may be already unit test for the functionality that you modified.

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


More information about the flang-commits mailing list