[clang] [flang] [llvm] Introduce -fexperimental-loop-fuse to clang and flang (PR #142686)

Madhur Amilkanthwar via cfe-commits cfe-commits at lists.llvm.org
Thu Aug 28 22:14:42 PDT 2025


================
@@ -52,6 +52,15 @@
 // CHECK-INTERCHANGE-LOOPS: "-floop-interchange"
 // CHECK-NO-INTERCHANGE-LOOPS: "-fno-loop-interchange"
 
+// RUN: %clang -### -S -fexperimental-loop-fusion %s 2>&1 | FileCheck -check-prefix=CHECK-FUSE-LOOPS %s
----------------
madhur13490 wrote:

I don't think this is usually done or necessary. I checked other options, which are introduced by `addOptInFlag`, namely `funique_internal_linkage_names`, `fseparate_named_sections`, `fatomic_ignore_denormal_mode`, `fsplit_stack`, and many others, and I don't see any precedence of having a test which checks if the negative options are recognized.

Do we want to make an exception for this?

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


More information about the cfe-commits mailing list