Skip to content

Commit 060e514

Browse files
committed
---
yaml --- r: 345582 b: refs/heads/master c: 8af6e75 h: refs/heads/master
1 parent 7780511 commit 060e514

File tree

7 files changed

+1
-77
lines changed

7 files changed

+1
-77
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: b4f0fc1f54b18d8c1889f349e7d2ffb76402f443
2+
refs/heads/master: 8af6e75e3ffd93fc97601ae5ecfd1cecb2d544da
33
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
44
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
55
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea

trunk/include/swift/SILOptimizer/Analysis/ArraySemantic.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ enum class ArrayCallKind {
2929
kGetCount,
3030
kGetCapacity,
3131
kGetElement,
32-
kGetArrayOwner,
3332
kGetElementAddress,
3433
kMakeMutable,
3534
kMutateUnknown,

trunk/lib/SILOptimizer/Analysis/ArraySemantic.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ ArrayCallKind swift::ArraySemanticsCall::getKind() const {
175175
.Case("array.get_count", ArrayCallKind::kGetCount)
176176
.Case("array.get_capacity", ArrayCallKind::kGetCapacity)
177177
.Case("array.get_element", ArrayCallKind::kGetElement)
178-
.Case("array.owner", ArrayCallKind::kGetArrayOwner)
179178
.Case("array.make_mutable", ArrayCallKind::kMakeMutable)
180179
.Case("array.get_element_address",
181180
ArrayCallKind::kGetElementAddress)

trunk/lib/SILOptimizer/Analysis/EscapeAnalysis.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1239,12 +1239,6 @@ void EscapeAnalysis::analyzeInstruction(SILInstruction *I,
12391239
return;
12401240
}
12411241
break;
1242-
case ArrayCallKind::kGetArrayOwner:
1243-
if (CGNode *BufferNode = ConGraph->getNode(ASC.getSelf(), this)) {
1244-
ConGraph->defer(ConGraph->getNode(ASC.getCallResult(), this),
1245-
BufferNode);
1246-
}
1247-
return;
12481242
case ArrayCallKind::kGetElement:
12491243
if (CGNode *AddrNode = ConGraph->getNode(ASC.getSelf(), this)) {
12501244
CGNode *DestNode = nullptr;

trunk/lib/SILOptimizer/LoopTransforms/COWArrayOpt.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -515,7 +515,6 @@ static bool isNonMutatingArraySemanticCall(SILInstruction *Inst) {
515515
case ArrayCallKind::kGetCount:
516516
case ArrayCallKind::kGetCapacity:
517517
case ArrayCallKind::kGetElement:
518-
case ArrayCallKind::kGetArrayOwner:
519518
case ArrayCallKind::kGetElementAddress:
520519
return true;
521520
case ArrayCallKind::kMakeMutable:

trunk/stdlib/public/core/ArraySlice.swift

Lines changed: 0 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -161,31 +161,6 @@ extension ArraySlice {
161161
return _buffer.capacity
162162
}
163163

164-
/// - Precondition: The array has a native buffer.
165-
@inlinable
166-
@_semantics("array.owner")
167-
internal func _getOwnerWithSemanticLabel_native() -> Builtin.NativeObject {
168-
return Builtin.unsafeCastToNativeObject(_buffer.nativeOwner)
169-
}
170-
171-
/// - Precondition: The array has a native buffer.
172-
@inlinable
173-
@inline(__always)
174-
internal func _getOwner_native() -> Builtin.NativeObject {
175-
#if _runtime(_ObjC)
176-
if _isClassOrObjCExistential(Element.self) {
177-
// We are hiding the access to '_buffer.owner' behind
178-
// _getOwner() to help the compiler hoist uniqueness checks in
179-
// the case of class or Objective-C existential typed array
180-
// elements.
181-
return _getOwnerWithSemanticLabel_native()
182-
}
183-
#endif
184-
// In the value typed case the extra call to
185-
// _getOwnerWithSemanticLabel_native hinders optimization.
186-
return Builtin.unsafeCastToNativeObject(_buffer.owner)
187-
}
188-
189164
@inlinable
190165
@_semantics("array.make_mutable")
191166
internal mutating func _makeMutableAndUnique() {

trunk/test/api-digester/Inputs/stdlib-stable-abi.json

Lines changed: 0 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -6529,48 +6529,6 @@
65296529
],
65306530
"funcSelfKind": "NonMutating"
65316531
},
6532-
{
6533-
"kind": "Function",
6534-
"name": "_getOwnerWithSemanticLabel_native",
6535-
"printedName": "_getOwnerWithSemanticLabel_native()",
6536-
"children": [
6537-
{
6538-
"kind": "TypeNominal",
6539-
"name": "BuiltinNativeObject",
6540-
"printedName": "Builtin.NativeObject"
6541-
}
6542-
],
6543-
"declKind": "Func",
6544-
"usr": "s:s10ArraySliceV33_getOwnerWithSemanticLabel_nativeBoyF",
6545-
"moduleName": "Swift",
6546-
"genericSig": "<τ_0_0>",
6547-
"declAttributes": [
6548-
"Semantics",
6549-
"Inlinable"
6550-
],
6551-
"funcSelfKind": "NonMutating"
6552-
},
6553-
{
6554-
"kind": "Function",
6555-
"name": "_getOwner_native",
6556-
"printedName": "_getOwner_native()",
6557-
"children": [
6558-
{
6559-
"kind": "TypeNominal",
6560-
"name": "BuiltinNativeObject",
6561-
"printedName": "Builtin.NativeObject"
6562-
}
6563-
],
6564-
"declKind": "Func",
6565-
"usr": "s:s10ArraySliceV16_getOwner_nativeBoyF",
6566-
"moduleName": "Swift",
6567-
"genericSig": "<τ_0_0>",
6568-
"declAttributes": [
6569-
"Inline",
6570-
"Inlinable"
6571-
],
6572-
"funcSelfKind": "NonMutating"
6573-
},
65746532
{
65756533
"kind": "Function",
65766534
"name": "_makeMutableAndUnique",

0 commit comments

Comments
 (0)