File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change 1
- // REQUIRES: rdar102865253
2
-
3
- // RUN: %target-swift-frontend -parse-as-library -primary-file %s -O -sil-verify-all -module-name=test -emit-sil | %FileCheck %s
4
- // RUN: %target-swift-frontend -parse-as-library -primary-file %s -Osize -sil-verify-all -module-name=test -emit-sil | %FileCheck %s
1
+ // RUN: %target-swift-frontend -parse-as-library -primary-file %s -O -sil-verify-all -module-name=test -Xllvm -sil-disable-pass=function-signature-opts -emit-sil | %FileCheck %s
2
+ // RUN: %target-swift-frontend -parse-as-library -primary-file %s -Osize -sil-verify-all -module-name=test -Xllvm -sil-disable-pass=function-signature-opts -emit-sil | %FileCheck %s
5
3
// REQUIRES: swift_stdlib_no_asserts,optimized_stdlib
6
4
// REQUIRES: swift_in_compiler
7
5
8
6
// Test optimal code generation for creating empty sets.
9
7
10
- // CHECK-LABEL: sil @$s4test30createEmptySetFromArrayLiteralShySiGyF
8
+ // CHECK-LABEL: sil {{.*}} @$s4test30createEmptySetFromArrayLiteralShySiGyF
11
9
// CHECK: global_addr @_swiftEmptySetSingleton
12
10
// CHECK-NOT: apply
13
11
// CHECK: } // end sil function '$s4test30createEmptySetFromArrayLiteralShySiGyF'
14
12
public func createEmptySetFromArrayLiteral( ) -> Set < Int > {
15
13
return [ ]
16
14
}
17
15
18
- // CHECK-LABEL: sil @$s4test29createEmptySetWithInitializerShySiGyF
16
+ // CHECK-LABEL: sil {{.*}} @$s4test29createEmptySetWithInitializerShySiGyF
19
17
// CHECK: global_addr @_swiftEmptySetSingleton
20
18
// CHECK-NOT: apply
21
19
// CHECK: } // end sil function '$s4test29createEmptySetWithInitializerShySiGyF'
22
20
public func createEmptySetWithInitializer( ) -> Set < Int > {
23
21
return Set < Int > ( )
24
22
}
25
23
26
- // CHECK-LABEL: sil @$s4test17createNonEmptySetShySiGyF
24
+ // CHECK-LABEL: sil {{.*}} @$s4test17createNonEmptySetShySiGyF
27
25
// CHECK: global_value
28
26
// CHECK: [[F:%[0-9]+]] = function_ref @$sSh21_nonEmptyArrayLiteralShyxGSayxG_tcfCSi_Tg5
29
27
// CHECK: apply [[F]]
You can’t perform that action at this time.
0 commit comments