mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
We insert end_cow_mutation_addr for lifetime dependent values dependent on mutable addresses. end_cow_mutation_addr can be simplified to end_cow_mutation after other optimizations like inlining, specialization etc This PR adds an instruction simplification to transform end_cow_mutation_addr to end_cow_mutation. This can enable array optimizations which look for end_cow_mutation.
48 lines
1.4 KiB
CMake
48 lines
1.4 KiB
CMake
# This source file is part of the Swift.org open source project
|
|
#
|
|
# Copyright (c) 2014 - 2021 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
|
|
SimplifyAllocRefDynamic.swift
|
|
SimplifyAllocStack.swift
|
|
SimplifyApply.swift
|
|
SimplifyBeginAndLoadBorrow.swift
|
|
SimplifyBeginCOWMutation.swift
|
|
SimplifyBranch.swift
|
|
SimplifyBuiltin.swift
|
|
SimplifyCheckedCast.swift
|
|
SimplifyClassifyBridgeObject.swift
|
|
SimplifyCondBranch.swift
|
|
SimplifyCondFail.swift
|
|
SimplifyConvertEscapeToNoEscape.swift
|
|
SimplifyCopyBlock.swift
|
|
SimplifyCopyValue.swift
|
|
SimplifyDebugStep.swift
|
|
SimplifyDestroyValue.swift
|
|
SimplifyDestructure.swift
|
|
SimplifyEndCOWMutationAddr.swift
|
|
SimplifyFixLifetime.swift
|
|
SimplifyGlobalValue.swift
|
|
SimplifyInitEnumDataAddr.swift
|
|
SimplifyKeyPath.swift
|
|
SimplifyLoad.swift
|
|
SimplifyMarkDependence.swift
|
|
SimplifyMisc.swift
|
|
SimplifyPartialApply.swift
|
|
SimplifyPointerToAddress.swift
|
|
SimplifyRefCasts.swift
|
|
SimplifyRetainReleaseValue.swift
|
|
SimplifyStrongRetainRelease.swift
|
|
SimplifyStructExtract.swift
|
|
SimplifySwitchEnum.swift
|
|
SimplifyTuple.swift
|
|
SimplifyTupleExtract.swift
|
|
SimplifyUncheckedAddrCast.swift
|
|
SimplifyUncheckedEnumData.swift
|
|
SimplifyValueToBridgeObject.swift
|
|
SimplifyWitnessMethod.swift)
|