Skip to content

SILCleanup => IRGenPrepare. #15973

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

Conversation

gottesmm
Copy link
Contributor

This PR:

  1. Renames SILCleanup to IRGenPrepare and moves it to the Mandatory filder.
  2. Performs small correctness cleanups such as only invalidating if we actually modified an instruction and only invalidating instructions rather than larger groups of effects.

rdar://39335800

This is in preparation for #15502.

…ename it to IRGenPrepare.

I am going to be adding logic here to enable swiftlang#1550 to be completed.
The rename makes sense due to precedent from LLVM's codegen prepare and also
since I am going to be expanding what the pass is doing beyond just "cleaning
up". It is really a grab bag pass for performing simple transformations that we
do not want to pollute IRGen's logic with.

swiftlang#15502

rdar://39335800
@gottesmm gottesmm requested review from atrick and slavapestov April 17, 2018 07:10
@gottesmm
Copy link
Contributor Author

@swift-ci smoke test

@atrick
Copy link
Contributor

atrick commented Apr 17, 2018

This seems fine. The name is bit strange because one would expect something called IRGenPrepare to work on the form of SIL that IRGen actually sees (lowered). This is more of a SIL lowering (post-serialization) prepare.

@gottesmm
Copy link
Contributor Author

I called it IRGenPrepare since it is basically a misc place for transformations that happen in preparation for lowered IR. If you come up with a better name, I am happy to change it.

@gottesmm gottesmm merged commit b05094f into swiftlang:master Apr 17, 2018
@gottesmm gottesmm deleted the pr-6a0bf75d9fc53d10ccd9de4251fb9b080f22a6b5 branch April 17, 2018 17:45
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.

2 participants