Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a requires lto instrprof-gc-sections.c #92919

Closed
wants to merge 1 commit into from

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 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
Collaborator

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