@@ -970,11 +970,12 @@ bb0(%0 : @guaranteed $C1):
970
970
return %0a : $C1
971
971
}
972
972
973
- // CHECK-LABEL: sil [ossa] @dead_end_cow_mutation
974
- // XHECK: bb0
975
- // XHECK-NEXT: destroy_value %0
976
- // XHECK-NEXT: tuple
977
- // XHECK-NEXT: return
973
+ // CHECK-LABEL: sil [ossa] @dead_end_cow_mutation :
974
+ // CHECK: bb0(
975
+ // CHECK-NEXT: destroy_value %0
976
+ // CHECK-NEXT: tuple
977
+ // CHECK-NEXT: return
978
+ // CHECK: } // end sil function 'dead_end_cow_mutation'
978
979
sil [ossa] @dead_end_cow_mutation : $@convention(thin) (@owned C1) -> () {
979
980
bb0(%0 : @owned $C1):
980
981
%1 = end_cow_mutation %0 : $C1
@@ -1898,25 +1899,6 @@ bb0:
1898
1899
return %2 : $()
1899
1900
}
1900
1901
1901
- // CHECK-LABEL: sil [ossa] @ref_ops_of_enum_is_equivalent_to_ref_ops_of_payload : $@convention(thin) (@owned Builtin.NativeObject) -> @owned FakeOptional<Builtin.NativeObject> {
1902
- // XHECK: bb0
1903
- // XHECK-NEXT: enum
1904
- // XHECK-NEXT: copy_value
1905
- // XHECK-NEXT: br bb1
1906
- // XHECK: bb1
1907
- // XHECK-NEXT: destroy_value
1908
- // XHECK-NEXT: return
1909
- sil [ossa] @ref_ops_of_enum_is_equivalent_to_ref_ops_of_payload : $@convention(thin) (@owned Builtin.NativeObject) -> @owned FakeOptional<Builtin.NativeObject> {
1910
- bb0(%0 : @owned $Builtin.NativeObject):
1911
- %1 = enum $FakeOptional<Builtin.NativeObject>, #FakeOptional.some!enumelt, %0 : $Builtin.NativeObject
1912
- %1a = copy_value %1 : $FakeOptional<Builtin.NativeObject>
1913
- br bb1
1914
-
1915
- bb1:
1916
- destroy_value %1 : $FakeOptional<Builtin.NativeObject>
1917
- return %1a : $FakeOptional<Builtin.NativeObject>
1918
- }
1919
-
1920
1902
// CHECK-LABEL: sil [ossa] @dead_unchecked_take_enum_data_addr :
1921
1903
// CHECK: bb0(%0 : $*AddressOnlyEnum):
1922
1904
// CHECK-NEXT: destroy_addr %0
@@ -2587,11 +2569,12 @@ bb3:
2587
2569
return %2 : $()
2588
2570
}
2589
2571
2590
- // CHECK-LABEL: sil [ossa] @resilient_enum_case_propagation
2591
- // XHECK: bb0:
2592
- // XHECK: br bb2
2593
- // XHECK: bb1:
2594
- // XHECK: return
2572
+ // We do not perform this optimization in SILCombine in OSSA since we would be
2573
+ // deleting an edge from the CFG.
2574
+ //
2575
+ // CHECK-LABEL: sil [ossa] @resilient_enum_case_propagation :
2576
+ // CHECK: switch_enum_addr
2577
+ // CHECK: } // end sil function 'resilient_enum_case_propagation'
2595
2578
sil [ossa] @resilient_enum_case_propagation : $@convention(thin) () -> Builtin.Int64 {
2596
2579
bb0:
2597
2580
%0 = alloc_stack $FloatingPointRoundingRule
0 commit comments