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

Jan Voung via llvm-commits llvm-commits at lists.llvm.org
Tue May 21 07:04:35 PDT 2024


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

>From a357fbf072762830d5fa952d7548fd19544c7e0b Mon Sep 17 00:00:00 2001
From: Jan Voung <jvoung at gmail.com>
Date: Tue, 21 May 2024 13:09:24 +0000
Subject: [PATCH] Add a requires `lto` instrprof-gc-sections.c

The test has a run with `flto` so 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
while `lld-available` may not:
https://github.com/llvm/llvm-project/pull/92752
---
 compiler-rt/test/profile/instrprof-gc-sections.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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



More information about the llvm-commits mailing list