Skip to content

Commit 58a19e9

Browse files
committed
Update tests
1 parent 79cc654 commit 58a19e9

File tree

4 files changed

+2
-6
lines changed

4 files changed

+2
-6
lines changed

test/SILOptimizer/consuming_parameter.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,11 @@ public func async_dead_arg_call(o: consuming AnyObject) async {
1818

1919
// CHECK-LABEL: sil [ossa] @async_dead_arg_call_lexical : {{.*}} {
2020
// CHECK: {{bb[0-9]+}}([[INSTANCE:%[^,]+]] : @noImplicitCopy @_lexical @owned
21-
// CHECK: [[MOVE:%[^,]+]] = move_value [lexical] [[INSTANCE]]
2221
// CHECK: [[EXECUTOR:%[^,]+]] = enum $Optional<Builtin.Executor>, #Optional.none!enumelt
2322
// CHECK: [[CALLEE:%[^,]+]] = function_ref @async_callee
2423
// CHECK: apply [[CALLEE]]()
2524
// CHECK: hop_to_executor [[EXECUTOR]]
26-
// CHECK: destroy_value [[MOVE]]
25+
// CHECK: destroy_value [[INSTANCE]]
2726
// CHECK-LABEL: } // end sil function 'async_dead_arg_call_lexical'
2827
@_silgen_name("async_dead_arg_call_lexical")
2928
public func async_dead_arg_call_lexical(@_noEagerMove o: consuming AnyObject) async {

test/SILOptimizer/pre_specialize_layouts.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ public func usePrespecializedThrowsEntryPoints() throws {
213213
// OPT-macosx: [[R9:%.*]] = unchecked_addr_cast [[R7]] : $*Array<Int> to $*Builtin.BridgeObject
214214
// OPT-macosx: [[A3:%.*]] = unchecked_bitwise_cast [[P4]] : $Array<Int> to $Builtin.BridgeObject
215215
// OPT-macosx: [[A4:%.*]] = unchecked_bitwise_cast [[P5]] : $Array<Float> to $Builtin.BridgeObject
216-
// OPT-macosx: [[F2]]([[R8]], [[R9]], [[A3]], [[A4]], [[P3]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject, @guaranteed Builtin.BridgeObject, Int64) -> (@out Builtin.BridgeObject, Int64, @out Builtin.BridgeObject) // user: %38
216+
// OPT-macosx: [[F2]]([[R8]], [[R9]], [[A3]], [[A4]], [[P3]]) : $@convention(thin) (@guaranteed Builtin.BridgeObject, @guaranteed Builtin.BridgeObject, Int64) -> (@out Builtin.BridgeObject, Int64, @out Builtin.BridgeObject)
217217
// OPT: } // end sil function '$s22pre_specialize_layouts40usePresepcializedMultipleIndirectResults___2xs2ysy0a20_specialized_module_C09SomeClassC_AA0m5OtherN0Cs5Int64VSaySiGSaySfGtF'
218218
public final class SomeOtherClass {}
219219
public func usePresepcializedMultipleIndirectResults(_ c: SomeClass, _ d: SomeOtherClass, _ x: Int64, xs: [Int], ys: [Float]) {

test/SILOptimizer/sil_combine_protocol_conf.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ public class Other {
124124
// CHECK: [[W1:%.*]] = witness_method $@opened("{{.*}}", any DerivedProtocol) Self, #DerivedProtocol.foo : <Self where Self : DerivedProtocol> (Self) -> () -> Int, [[O1]] : $*@opened("{{.*}}", any DerivedProtocol) Self : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
125125
// CHECK: apply [[W1]]<@opened("{{.*}}", any DerivedProtocol) Self>([[O1]]) : $@convention(witness_method: DerivedProtocol) <τ_0_0 where τ_0_0 : DerivedProtocol> (@in_guaranteed τ_0_0) -> Int
126126
// CHECK: struct_extract
127-
// CHECK: integer_literal
128127
// CHECK: builtin
129128
// CHECK: tuple_extract
130129
// CHECK: tuple_extract

test/stdlib/move_function.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ tests.test("simpleVarTest") {
9191
expectTrue(_isUnique_native(&x))
9292

9393
var y = x
94-
expectFalse(_isUnique_native(&x))
9594
let _ = consume y
9695
expectTrue(_isUnique_native(&x))
9796
y = Klass()
@@ -101,7 +100,6 @@ tests.test("simpleVarTest") {
101100
tests.test("simpleInoutVarTest") {
102101
func inOutTest(_ x: inout Klass) {
103102
var y = x
104-
expectFalse(_isUnique_native(&x))
105103
let _ = consume y
106104
expectTrue(_isUnique_native(&x))
107105
y = Klass()

0 commit comments

Comments
 (0)