Skip to content

Conversation

aschwaighofer
Copy link
Contributor

The intent for @inline(always) is to act as an optimization control. The user can rely on inlining to happen or the compiler will emit an error message.

Because function values can be dynamic (closures, protocol/class lookup) this guarantee can only be upheld for direct function references.

In cases where the optimizer can resolve dynamic function values the attribute shall be respected.

rdar://148608854

The intent for `@inline(always)` is to act as an optimization control.
The user can rely on inlining to happen or the compiler will emit an error
message.

Because function values can be dynamic (closures, protocol/class lookup)
this guarantee can only be upheld for direct function references.

In cases where the optimizer can resolve dynamic function values the
attribute shall be respected.

rdar://148608854
@aschwaighofer
Copy link
Contributor Author

@swift-ci test

@aschwaighofer
Copy link
Contributor Author

@swift-ci test macOS

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