Skip to content

MandatoryInlining: Add a peephole for inlining thorough a thin to noe… #14856

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

aschwaighofer
Copy link
Contributor

…scape conversion

%0 = function_ref @return_one : $@convention(thin) () -> Builtin.Int32
%1 = convert_function %0 : $@convention(thin) () -> Builtin.Int32 to $@convention(thin) @NoEscape () -> Builtin.Int32
%2 = thin_to_thick_function %1 : $@convention(thin) @NoEscape () -> Builtin.Int32 to $@NoEscape () -> Builtin.Int32
%3 = apply %2() : $@NoEscape () -> Builtin.Int32

rdar://37945226

…scape conversion

  %0 = function_ref @return_one : $@convention(thin) () -> Builtin.Int32
  %1 = convert_function %0 : $@convention(thin) () -> Builtin.Int32 to $@convention(thin) @NoEscape () -> Builtin.Int32
  %2 = thin_to_thick_function %1 : $@convention(thin) @NoEscape () -> Builtin.Int32 to $@NoEscape () -> Builtin.Int32
  %3 = apply %2() : $@NoEscape () -> Builtin.Int32

rdar://37945226
@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test and merge

@aschwaighofer
Copy link
Contributor Author

@swift-ci Please smoke test

@aschwaighofer aschwaighofer merged commit 512beb2 into swiftlang:master Feb 27, 2018
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.

1 participant