Skip to content

[CodeGen][LTO] Rename some misleading variables #65185

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
Sep 5, 2023

Conversation

pogo59
Copy link
Collaborator

@pogo59 pogo59 commented Sep 1, 2023

Some flags named "IsLTO" and "IsThinLTO" implied they described compilation modes, but with Unified LTO this is no longer true. Rename these to "PrepForXXX" to be less confusing to readers. Also, deleted "IsThinOrUnifiedLTO" because Unified implies PrepareForThinLTO.

Some flags named "IsLTO" and "IsThinLTO" implied they described
compilation modes, but with Unified LTO this is no longer true.
Rename these to "PrepForXXX" to be less confusing to readers.
Also, deleted "IsThinOrUnifiedLTO" because Unified implies
PrepareForThinLTO.
@pogo59 pogo59 requested a review from a team as a code owner September 1, 2023 19:59
@pogo59 pogo59 requested review from ormris and ilovepi September 1, 2023 20:00
Copy link
Contributor

@ilovepi ilovepi left a comment

Choose a reason for hiding this comment

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

I think this is fine from my perspective. I just tried to translate the existing logic a bit to work w/ the FatLTO pipeline, so if these names will improve clarity, I'm all for it.

I see that we set PrepareForThinLTO w/ -funified-lto in CompilerInvocation.cpp so I assume that will be safe, but @ormris should probably confirm, since they are the most familiar w/ the UnifiedLTO pipeline.

@pogo59 pogo59 merged commit a4605af into llvm:main Sep 5, 2023
@pogo59 pogo59 deleted the lit-terminology branch September 5, 2023 15:57
avillega pushed a commit to avillega/llvm-project that referenced this pull request Sep 11, 2023
Some flags named "IsLTO" and "IsThinLTO" implied they described
compilation modes, but with Unified LTO this is no longer true. Rename
these to "PrepForXXX" to be less confusing to readers. Also, deleted
"IsThinOrUnifiedLTO" because Unified implies PrepareForThinLTO.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants