[clang] [llvm] [Clang][X86] Resolve target_clones calls through GlobalOpt (PR #230278)

Oleksandr Kulkov via cfe-commits cfe-commits at lists.llvm.org
Fri Nov 6 03:49:56 PST 2026


================
@@ -0,0 +1,85 @@
+// REQUIRES: x86-registered-target
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -O1 -disable-llvm-passes -emit-llvm %s -o - | FileCheck %s --check-prefix=ATTR
+// RUN: %clang_cc1 -triple x86_64-linux-gnu -O2 -emit-llvm %s -o - | FileCheck %s --check-prefix=OPT
----------------
adamant-pwn wrote:

Moved the optimizer checks to `llvm/test/Transforms/GlobalOpt/X86/target-clones-inline.ll`. The Clang test now checks each clone's attribute group, including the absence of `fmv-features` on the `arch=haswell` clones.

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


More information about the cfe-commits mailing list