Skip to content

[semantic-arc-opts] Create an explicit composition type for "ownership phi operands". #32172

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

Conversation

gottesmm
Copy link
Contributor

@gottesmm gottesmm commented Jun 3, 2020

This is letting me refactor the implementation of every place that I work with
branches as "ownership phi operands" to instead work with
OwnershipPhiOperand. In a future commit, I am going to use this to add support
for optimizing structs and tuples that have multiple owned incoming values.

rdar://problem/63950481

…p phi operands".

This is letting me refactor the implementation of every place that I work with
branches as "ownership phi operands" to instead work with
OwnershipPhiOperand. In a future commit, I am going to use this to add support
for optimizing structs and tuples that have multiple owned incoming values.

<rdar://problem/63950481>
@gottesmm gottesmm requested a review from atrick June 3, 2020 23:33
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 3, 2020

@swift-ci test

@swift-ci
Copy link
Contributor

swift-ci commented Jun 3, 2020

Build failed
Swift Test OS X Platform
Git Sha - 0bed967

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

Known sand box view

@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

@swift-ci test OS X platform

case Kind::Branch: {
auto *br = cast<BranchInst>(getInst());
unsigned opNum = getOperandNumber();
return llvm::all_of(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

One thing to be aware of is that when I add instructions like struct/tuple here, I am going to be just returning getInst() essentially.

@gottesmm gottesmm merged commit 5808893 into swiftlang:master Jun 4, 2020
@gottesmm gottesmm deleted the pr-58e5e110fe11cabaa1d79077537f42c392666592 branch June 4, 2020 03:00
@gottesmm
Copy link
Contributor Author

gottesmm commented Jun 4, 2020

FYI, again: this is just a pure refactoring.

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