[llvm-branch-commits] [clang] [flang] [flang][Driver] Add option for real sum reassociation (PR #207377)

Tarun Prabhu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Jul 7 08:41:33 PDT 2026


================
@@ -1,4 +1,5 @@
-! RUN: %flang_fc1 -emit-hlfir -mllvm -enable-split-sum-expression-tree-lowering -o - %s | FileCheck %s --check-prefixes=SPLIT,NO-REWRITE
+! RUN: %flang_fc1 -emit-hlfir -freal-sum-reassociation -o - %s | FileCheck %s --check-prefixes=SPLIT,NO-REWRITE
+! RUN: %flang_fc1 -emit-hlfir -freal-sum-reassociation -fno-real-sum-reassociation -o - %s | FileCheck %s --check-prefixes=DEFAULT,NO-REWRITE
----------------
tarunprabhu wrote:

Instead of adding both `-freal-sum-association` and `-fno-real-sum-association` here, it may be better to have one test for each. Since this is visible in the driver, we should add a driver test with both these options to test that the the last one "wins".

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


More information about the llvm-branch-commits mailing list