Skip to content

Conversation

@zoecarver
Copy link
Contributor

This patch updates the partial apply visitor in SILCombine to support ownership. The visitor didn't need any changes but, I've added tests to make sure we support all non-ossa cases in ownership mode. Based on #30559.

@zoecarver zoecarver requested a review from gottesmm March 23, 2020 03:00
@zoecarver
Copy link
Contributor Author

Also, I've made sure that the stdlib still builds when I move ownership elimination after silcombe in the pass pipeline.

Copy link
Contributor

Choose a reason for hiding this comment

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

Can you split out the hasOwnership move into its own commit? That way in this commit, you can show that you are removing the partial apply one? Then it is clear what the code motion is.

Copy link
Contributor

Choose a reason for hiding this comment

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

I see that you actual did split it into two commits. Can you improve the commit message? Say what you are doing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@gottesmm I've updated the commit messages both here and in #30559.
d3ba5fe isn't changed here but that's OK because it will go away after #30559 lands and I rebase.

@zoecarver zoecarver force-pushed the ossa/sil-combine-partial-apply branch from f77cd0d to 04cb34d Compare March 23, 2020 23:12
@zoecarver
Copy link
Contributor Author

Ping. This is a test-only change.

@zoecarver zoecarver requested a review from atrick April 10, 2020 16:53
@CodaFi
Copy link
Contributor

CodaFi commented Apr 15, 2020

Ah, apologies.

@swift-ci test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5346e03cb67869f237b90ea5c707205e9643a544

@zoecarver
Copy link
Contributor Author

Somehow when I merged master into this I removed the sil combine change, so the tests are now failing. I'll add that back. Sorry for wasting the buildbot resources. @CodaFi thanks for the help.

@zoecarver zoecarver force-pushed the ossa/sil-combine-partial-apply branch from 5346e03 to cf9755d Compare April 15, 2020 04:32
* No longer bail on ownership functions in the partial_apply visitor. * Add ossa versions of all partial_apply SILCombine sil tests.
@zoecarver zoecarver force-pushed the ossa/sil-combine-partial-apply branch from cf9755d to cb1529a Compare April 15, 2020 04:36
@zoecarver
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

Build failed
Swift Test Linux Platform
Git Sha - 5346e03cb67869f237b90ea5c707205e9643a544

@swift-ci
Copy link
Contributor

Build failed
Swift Test OS X Platform
Git Sha - 5346e03cb67869f237b90ea5c707205e9643a544

@shahmishal
Copy link
Member

Please update the base branch to main by Oct 5th otherwise the pull request will be closed automatically.

  • How to change the base branch: (Link)
  • More detail about the branch update: (Link)
@zoecarver zoecarver changed the base branch from master to main October 2, 2020 04:13
@zoecarver
Copy link
Contributor Author

@CodaFi @gottesmm friendly ping. I'd like to try to land this soon.

@zoecarver
Copy link
Contributor Author

@swift-ci please test.

(Just to make sure we're still OK.)

@zoecarver
Copy link
Contributor Author

@swift-ci please test.

@swift-ci
Copy link
Contributor

swift-ci commented Dec 6, 2020

Build failed
Swift Test OS X Platform
Git Sha - cb1529a

@swift-ci
Copy link
Contributor

swift-ci commented Dec 6, 2020

Build failed
Swift Test Linux Platform
Git Sha - cb1529a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

5 participants