[compiler-rt] Add a requires `lto` instrprof-gc-sections.c (PR #92919)

via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 08:04:38 PDT 2024


llvmbot wrote:


<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-pgo

Author: Jan Voung (jvoung)

<details>
<summary>Changes</summary>

The test has a run with `flto` so it makes sense to require `lto` in some way. Currently it relies on requires `lld-available` to imply that `lto` is supported, but it would help to separate the two notions in that `lto` should require up to date components (https://github.com/llvm/llvm-project/pull/92752) while `lld-available` may not.


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


1 Files Affected:

- (modified) compiler-rt/test/profile/instrprof-gc-sections.c (+1-1) 


``````````diff
diff --git a/compiler-rt/test/profile/instrprof-gc-sections.c b/compiler-rt/test/profile/instrprof-gc-sections.c
index 8b84c0a242180..1a772a296de82 100644
--- a/compiler-rt/test/profile/instrprof-gc-sections.c
+++ b/compiler-rt/test/profile/instrprof-gc-sections.c
@@ -1,4 +1,4 @@
-// REQUIRES: linux, lld-available
+// REQUIRES: linux, lld-available, lto
 
 // FIXME: Investigate and fix.
 // XFAIL: powerpc64-target-arch

``````````

</details>


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


More information about the llvm-commits mailing list