Skip to content

Devirtualizer: enable inline an inlinable function into a non-inlinable function #17337

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
Jun 19, 2018

Conversation

shajrawi
Copy link

Follow-up to #17327

@shajrawi
Copy link
Author

@swift-ci Please smoke test and merge

AI.getFunction()->getResilienceExpansion() ==
ResilienceExpansion::Minimal)) {
if (isEffectivelyFinalMethod && AI.getFunction()->getResilienceExpansion() ==
ResilienceExpansion::Minimal) {
DEBUG(llvm::dbgs() << " FAIL: Could not optimize function because "
"it is an effectively-final inlinable: "
<< F->getName() << "\n");
Copy link
Contributor

Choose a reason for hiding this comment

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

This should probably be using AI.getFunction() too, right?

Copy link
Author

Choose a reason for hiding this comment

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

Right!

@shajrawi
Copy link
Author

@swift-ci Please smoke test and merge

1 similar comment
@shajrawi
Copy link
Author

@swift-ci Please smoke test and merge

@swift-ci swift-ci merged commit 9465673 into swiftlang:master Jun 19, 2018
@shajrawi shajrawi deleted the devirt_inline2 branch June 19, 2018 23:33
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.

3 participants