mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user