Skip to content

[BasicAA] Enable separate storage hints by default #76864

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
Jan 3, 2024

Conversation

davidtgoldblatt
Copy link
Contributor

As requested in #76770 (review)

A few months of experimentation in a large codebase did not reveal any significant build speed regressions, and b07bf16 speeds up hint lookup even further.

A few months of experimentation in a large codebase did not reveal any
significant build speed regressions, and b07bf16 speeds up hint lookup
even further.
@davidtgoldblatt davidtgoldblatt requested a review from nikic as a code owner January 3, 2024 20:49
@llvmbot llvmbot added the llvm:analysis Includes value tracking, cost tables and constant folding label Jan 3, 2024
@llvmbot
Copy link
Member

llvmbot commented Jan 3, 2024

@llvm/pr-subscribers-llvm-analysis

Author: David Goldblatt (davidtgoldblatt)

Changes

As requested in #76770 (review)

A few months of experimentation in a large codebase did not reveal any significant build speed regressions, and b07bf16 speeds up hint lookup even further.


Full diff: https://github.com/llvm/llvm-project/pull/76864.diff

1 Files Affected:

  • (modified) llvm/lib/Analysis/BasicAliasAnalysis.cpp (+1-1)
diff --git a/llvm/lib/Analysis/BasicAliasAnalysis.cpp b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
index 4ad70931fd4cfd..97f60d28e49917 100644
--- a/llvm/lib/Analysis/BasicAliasAnalysis.cpp
+++ b/llvm/lib/Analysis/BasicAliasAnalysis.cpp
@@ -69,7 +69,7 @@ static cl::opt<bool> EnableRecPhiAnalysis("basic-aa-recphi", cl::Hidden,
                                           cl::init(true));
 
 static cl::opt<bool> EnableSeparateStorageAnalysis("basic-aa-separate-storage",
-                                                   cl::Hidden, cl::init(false));
+                                                   cl::Hidden, cl::init(true));
 
 /// SearchLimitReached / SearchTimes shows how often the limit of
 /// to decompose GEPs is reached. It will affect the precision

Copy link
Contributor

@nikic nikic left a comment

Choose a reason for hiding this comment

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

LGTM

@davidtgoldblatt davidtgoldblatt merged commit 92e211a into llvm:main Jan 3, 2024
@davidtgoldblatt
Copy link
Contributor Author

Woops -- merged before checks finished (on autopilot -- haven't used the github workflow in a while). Feels safe enough to leave as is for now, but sorry in advance to posterity if this ends up breaking something. Please feel free to revert if so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
llvm:analysis Includes value tracking, cost tables and constant folding
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants