Files
swift-mirror/test/IRGen/temporary_allocation
Allan Shortlidge 523e573d43 stdlib: Avoid pointless overhead in withUnsafeTemporaryAllocation().
The runtime function `swift_stdlib_isStackAllocationSafe()` never returns a
value other than false, so calling it and checking availability in order to
determine whether it is safe to do so are unnecessary overhead for the current
implementation. This overhead is especially noticable on macOS currently because
standard library availability checks are not elided by the optimizer when
inlined into clients due to the standard library being built zippered for
macCatalyst.

If `swift_stdlib_isStackAllocationSafe()` ever becomes non-trivial, we can
reintroduce the check.

Resolves rdar://174020289.
2026-04-03 13:26:05 -07:00
..