[clang] [MemProf] Require x86 for memprof-pgho.cpp test (PR #170321)

via cfe-commits cfe-commits at lists.llvm.org
Tue Dec 2 08:28:15 PST 2025


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-clang

Author: Marco Elver (melver)

<details>
<summary>Changes</summary>

This requires an x86 build, otherwise the test will fail with:

	Error running ThinLTO backend: No available targets are compatible with triple "x86_64-unknown-linux-gnu"

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


1 Files Affected:

- (modified) clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp (+2) 


``````````diff
diff --git a/clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp b/clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp
index ed05962846aff..317efd1b3a138 100644
--- a/clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp
+++ b/clang/test/CodeGen/distributed-thin-lto/memprof-pgho.cpp
@@ -1,6 +1,8 @@
 // Test end-to-end ThinLTO optimization pipeline with PGHO, that it does not
 // interfere with other allocation instrumentation features.
 //
+// REQUIRES: x86-registered-target
+//
 // RUN: split-file %s %t
 // RUN: llvm-profdata merge %t/memprof.yaml -o %t/use.memprofdata
 //

``````````

</details>


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


More information about the cfe-commits mailing list