[flang-commits] [flang] [llvm] [flang] Support static-unit array slices in FIR LoopVersioning (PR #222723)

Sergey Shcherbinin via flang-commits flang-commits at lists.llvm.org
Thu Sep 24 03:19:58 PDT 2026


================
@@ -0,0 +1,649 @@
+! RUN: %flang_fc1 -emit-fir -O3 %s -o - | \
+! RUN:   fir-opt --verify-each --loop-versioning | \
+! RUN:   FileCheck %s --enable-var-scope
+! RUN: %flang -S -O3 -fversion-loops-for-stride \
+! RUN:   -mmlir --mlir-disable-threading \
+! RUN:   -mmlir --mlir-print-ir-after=loop-versioning \
+! RUN:   %s -o /dev/null 2>&1 | \
+! RUN:   FileCheck %s --check-prefix=DRIVER --enable-var-scope
+! RUN: %flang -S -O3 -fversion-loops-for-stride \
+! RUN:   -fdefault-integer-8 -fdefault-real-8 \
+! RUN:   -mmlir --mlir-disable-threading \
+! RUN:   -mmlir --mlir-print-ir-after=loop-versioning \
+! RUN:   %s -o /dev/null 2>&1 | \
+! RUN:   FileCheck %s --check-prefix=WIDE --enable-var-scope
----------------
SergeyShch01 wrote:

Agreed. I removed the `-fdefault-integer-8 -fdefault-real-8` runs and the corresponding checks. The remaining cases already cover multiple element sizes directly.


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


More information about the flang-commits mailing list