Skip to content

Conversation

jvoung
Copy link
Contributor

@jvoung jvoung commented May 21, 2024

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 (#92752) while lld-available may not.

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:
llvm#92752
@jvoung jvoung force-pushed the clang_lto_profgen_tests branch from 04baf87 to c4e3e83 Compare May 21, 2024 14:26
@jvoung jvoung marked this pull request as ready for review May 21, 2024 15:04
@llvmbot llvmbot added compiler-rt PGO Profile Guided Optimizations labels May 21, 2024
@llvmbot
Copy link
Member

llvmbot commented May 21, 2024

@llvm/pr-subscribers-pgo

Author: Jan Voung (jvoung)

Changes

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 (#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 --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

@jvoung
Copy link
Contributor Author

jvoung commented May 21, 2024

@vitalybuka or @MaskRay if #92752 makes sense then this is a follow up.

Thanks in advance.

@MaskRay
Copy link
Member

MaskRay commented May 21, 2024

The linker tests have to use -fuse-ld=lld because we only have confidence in lld and other linkers (e.g. GNU ld, gold) might not work. Since -fuse-ld=lld is used, lto is not really necessary.

@MaskRay MaskRay closed this May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler-rt PGO Profile Guided Optimizations
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants