[stdlib] Drop @inlinable if @inline(never).

Aggressively remove all `@inlinable` from any function that's
`@inline(never)` to see the impact.

`@inlinable @inline(never)` is a potential code smell. While it might
expose some optimization and specialization opportunities to the
optimizer, it's most commonly a sign that more thought is needed.
This commit is contained in:
Michael Ilseman
2018-04-24 16:16:43 -07:00
parent fdbfba31fd
commit e907d11dbc
11 changed files with 22 additions and 23 deletions

View File

@@ -134,8 +134,8 @@ extension _ArrayBufferProtocol where Indices == Range<Int>{
}
// Make sure the compiler does not inline _copyBuffer to reduce code size.
@inlinable
@inline(never)
@usableFromInline
internal init(copying buffer: Self) {
let newBuffer = _ContiguousArrayBuffer<Element>(
_uninitializedCount: buffer.count, minimumCapacity: buffer.count)