[clang] Remove unnecessary -O1 from clang command. (PR #190417)

via cfe-commits cfe-commits at lists.llvm.org
Fri Apr 3 15:28:57 PDT 2026


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Peter Collingbourne (pcc)

<details>
<summary>Changes</summary>

It is generally inappropriate to pass -O flags to IRGen tests because
it makes them sensitive to optimizer behavior. #<!-- -->186548 makes a change to
optimizer behavior that would cause this test to fail without this change.


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


1 Files Affected:

- (modified) clang/test/CodeGenCXX/pfp-load-store.cpp (+1-1) 


``````````diff
diff --git a/clang/test/CodeGenCXX/pfp-load-store.cpp b/clang/test/CodeGenCXX/pfp-load-store.cpp
index bc947cdd0cf67..dfff744344992 100644
--- a/clang/test/CodeGenCXX/pfp-load-store.cpp
+++ b/clang/test/CodeGenCXX/pfp-load-store.cpp
@@ -1,4 +1,4 @@
-// RUN: %clang_cc1 -triple aarch64-linux -fexperimental-pointer-field-protection-abi -fexperimental-pointer-field-protection-tagged -emit-llvm -O1 -o - %s | FileCheck %s
+// RUN: %clang_cc1 -triple aarch64-linux -fexperimental-pointer-field-protection-abi -fexperimental-pointer-field-protection-tagged -emit-llvm -o - %s | FileCheck %s
 
 int val;
 

``````````

</details>


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


More information about the cfe-commits mailing list