Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Redo the Pass Manager #206

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
CodaFi merged 6 commits into llvm-swift:master from CodaFi:dont-pass-me-by
May 25, 2019
Merged

Redo the Pass Manager #206

CodaFi merged 6 commits into llvm-swift:master from CodaFi:dont-pass-me-by
May 25, 2019

Conversation

Copy link
Member

@CodaFi CodaFi commented May 1, 2019

This thing was never correct. We mixed up Function passes and Module passes, and if you were unlucky enough to schedule both into the function pass manager then LLVM would probably crash.

Provide the interface we were shooting for here anyways in the form of a Swift-like pass pipeliner. You can freely mix module and function-level passes in the pipeliner, and we will schedule them the way LLVM would anyways (group the function passes, then run the module passes). There's bindings for LTO passes that never made it into a header that we could also wrap with this infrastructure.

.globalDCE,
.deadArgElimination,
.ipConstantPropagation,
.ipscc:
Copy link
Collaborator

@matthewseaman matthewseaman May 1, 2019

Choose a reason for hiding this comment

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

I believe at least .functionAttrs should be here too.

@CodaFi CodaFi force-pushed the dont-pass-me-by branch 3 times, most recently from 51711ec to 6c35b53 Compare May 1, 2019 23:24
Copy link
Collaborator

@matthewseaman matthewseaman left a comment

Choose a reason for hiding this comment

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

Looking great!

@@ -106,8 +106,6 @@ public enum FunctionPass {
case scalarReplAggregates
/// Replace aggregates or pieces of aggregates with scalar SSA values.
case scalarReplAggregatesSSA
/// Tries to inline the fast path of library calls such as sqrt.
case simplifyLibCalls
Copy link
Collaborator

@matthewseaman matthewseaman May 2, 2019

Choose a reason for hiding this comment

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

Why is this removed?

Copy link
Member Author

Choose a reason for hiding this comment

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

The corresponding add pass function is a no-op as the pass has been removed.

matthewseaman reacted with thumbs up emoji
CodaFi added 3 commits May 25, 2019 14:23
All the SROA variants in the C API no longer make a difference.
This finally allows us to wrap passes that require additional parameters or configuration calls.
In order to do this for internalize in particular, we have to do some heroic lifetime juggling.
@CodaFi CodaFi marked this pull request as ready for review May 25, 2019 21:38
Copy link
Member Author

CodaFi commented May 25, 2019

⛵️

matthewseaman reacted with hooray emoji

@CodaFi CodaFi merged commit 8284325 into llvm-swift:master May 25, 2019
@CodaFi CodaFi deleted the dont-pass-me-by branch May 25, 2019 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@matthewseaman matthewseaman matthewseaman left review comments

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /