mirror of
https://github.com/apple/swift.git
synced 2026-06-20 15:42:51 +02:00
080f9e6a81
Optimizes protocol conformance checking by pre-populating vtables with conformance information for "fast-cast" protocols that have superclass constraints. This optimization works by: 1. Identifying classes that are eligible for optimization (have fixed metadata layout, are not open access, and belong to the current module) 2. Finding protocols, enabled for fast casting nad that have superclass constraints and belong to the current module 3. Pre-computing conformance checks for these protocols and storing the results directly in the vtable, eliminating the need for runtime conformance lookups
17 lines
569 B
CMake
17 lines
569 B
CMake
# This source file is part of the Swift.org open source project
|
|
#
|
|
# Copyright (c) 2014 - 2022 Apple Inc. and the Swift project authors
|
|
# Licensed under Apache License v2.0 with Runtime Library Exception
|
|
#
|
|
# See http://swift.org/LICENSE.txt for license information
|
|
# See http://swift.org/CONTRIBUTORS.txt for Swift project authors
|
|
|
|
swift_compiler_sources(Optimizer
|
|
ConformanceCheckOptimization.swift
|
|
DiagnoseUnknownConstValues.swift
|
|
EmbeddedSwiftDiagnostics.swift
|
|
MandatoryPerformanceOptimizations.swift
|
|
ReadOnlyGlobalVariables.swift
|
|
StackProtection.swift
|
|
)
|