[flang-commits] [flang] Make test in optimization-remark.f90 more tolerant (PR #157036)

via flang-commits flang-commits at lists.llvm.org
Fri Sep 5 00:36:16 PDT 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-flang-driver

Author: None (julianmorillo)

<details>
<summary>Changes</summary>

Make the test more tolerant (needed for RISC-V, as this target is not expected to emit optimization remarks)

---
Full diff: https://github.com/llvm/llvm-project/pull/157036.diff


1 Files Affected:

- (modified) flang/test/Driver/optimization-remark.f90 (+1-1) 


``````````diff
diff --git a/flang/test/Driver/optimization-remark.f90 b/flang/test/Driver/optimization-remark.f90
index 90e310d36c807..dd211f7c8c4fd 100644
--- a/flang/test/Driver/optimization-remark.f90
+++ b/flang/test/Driver/optimization-remark.f90
@@ -19,7 +19,7 @@
 ! RUN: %flang %s -O2 -Rpass=loop -S %{output} 2>&1 | FileCheck %s --check-prefix=PASS-REGEX-LOOP-ONLY
 
 ! Check valid -Rpass-missed regex
-! RUN: %flang %s -O2 -Rpass-missed=loop -S %{output} 2>&1 | FileCheck %s --check-prefix=MISSED-REGEX-LOOP-ONLY
+! RUN: %flang %s -O2 -Rpass-missed=loop -S %{output} 2>&1 | FileCheck %s --allow-empty --check-prefix=MISSED-REGEX-LOOP-ONLY
 
 ! Check valid -Rpass-analysis regex
 ! RUN: %flang %s -O2 -Rpass-analysis=loop -S %{output} 2>&1 | FileCheck %s --check-prefix=ANALYSIS-REGEX-LOOP-ONLY

``````````

</details>


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


More information about the flang-commits mailing list