Skip to content

Commit 48b4d3a

Browse files
committed
stdlib: Sprinkle an __always inline onto Range.index(after:)
After moving to the new llvm pass pipeline this function no longer gets inlined. Leading to 150% regressions in ObjectiveCBridge benchmarks. rdar://98533158
1 parent 0cc2ee1 commit 48b4d3a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/public/core/Range.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,7 @@ where Bound: Strideable, Bound.Stride: SignedInteger
229229
public var endIndex: Index { return upperBound }
230230

231231
@inlinable
232+
@inline(__always)
232233
public func index(after i: Index) -> Index {
233234
_failEarlyRangeCheck(i, bounds: startIndex..<endIndex)
234235

0 commit comments

Comments
 (0)