Skip to content

[LLVM] Only enable -fno-lifetime-dse in LTO mode #131381

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

Merged
merged 1 commit into from
Mar 14, 2025
Merged

Conversation

jhuber6
Copy link
Contributor

@jhuber6 jhuber6 commented Mar 14, 2025

Summary:
Always passing this option is problematic since it is not supported by
clang. this leads to conflicts when using extra CMake tools like
compile-commands or include-what-you-use. This mainly works around a
bug that showed up during the LTO build. Theoretically this can show up
without LTO, but it's likely to work.

This can be removed once #24952 is resolved.

Summary:
Always passing this option is problematic since it is not supported by
`clang.` this leads to conflicts when using extra CMake tools like
`compile-commands` or `include-what-you-use`. This mainly works around a
bug that showed up during the LTO build. Theoretically this can show up
without LTO, but it's likely to work.
@llvmbot llvmbot added the cmake Build system in general and CMake in particular label Mar 14, 2025
Copy link
Member

@thesamesam thesamesam left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add some reference to the original bug in the commit message so it shows up as a cross-link in case someone gets confused in future. Ship it, thanks.

@jhuber6 jhuber6 merged commit 6ac6312 into llvm:main Mar 14, 2025
10 of 12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cmake Build system in general and CMake in particular
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants