@@ -410,12 +410,12 @@ bb0:
410
410
}
411
411
412
412
// CHECK-LABEL: sil [ossa] @optimize_nested_index_addr
413
- // XHECK : bb0(%0 : $Builtin.RawPointer):
414
- // XHECK -NEXT: %1 = pointer_to_address %0
415
- // XHECK -NEXT: %2 = integer_literal $Builtin.Word, 10
416
- // XHECK -NEXT: %3 = index_addr %1 : $*UInt8, %2
417
- // XHECK -NEXT: %4 = address_to_pointer %3
418
- // XHECK -NEXT: return %4
413
+ // CHECK : bb0(%0 : $Builtin.RawPointer):
414
+ // CHECK -NEXT: %1 = pointer_to_address %0
415
+ // CHECK -NEXT: %2 = integer_literal $Builtin.Word, 10
416
+ // CHECK -NEXT: %3 = index_addr %1 : $*UInt8, %2
417
+ // CHECK -NEXT: %4 = address_to_pointer %3
418
+ // CHECK -NEXT: return %4
419
419
sil [ossa] @optimize_nested_index_addr : $@convention(thin) (Builtin.RawPointer) -> Builtin.RawPointer {
420
420
bb0(%0 : $Builtin.RawPointer):
421
421
%1 = integer_literal $Builtin.Word, 3
@@ -528,11 +528,12 @@ bb0(%0 : @owned $HeapBufferStorage<T_0_0, T_0_1>):
528
528
return %3 : $HeapBufferStorage<T_0_0, T_0_1>
529
529
}
530
530
531
- // CHECK-LABEL: sil [ossa] @cond_fail_applied_to_zero_removal
532
- // XHECK: bb0
533
- // XHECK-NEXT: cond_fail
534
- // XHECK-NEXT: tuple ()
535
- // XHECK-NEXT: return
531
+ // CHECK-LABEL: sil [ossa] @cond_fail_applied_to_zero_removal :
532
+ // CHECK: bb0
533
+ // CHECK-NEXT: cond_fail
534
+ // CHECK-NEXT: tuple ()
535
+ // CHECK-NEXT: return
536
+ // CHECK: } // end sil function 'cond_fail_applied_to_zero_removal'
536
537
sil [ossa] @cond_fail_applied_to_zero_removal : $@convention(thin) (Builtin.Int1) -> () {
537
538
bb0(%0 : $Builtin.Int1):
538
539
cond_fail %0 : $Builtin.Int1
@@ -2051,10 +2052,11 @@ bb0(%0 : $Int):
2051
2052
return %8 : $()
2052
2053
}
2053
2054
2054
- // CHECK-LABEL: @remove_pointer_compare_to_zero_NE
2055
- // XHECK-NOT: apply
2056
- // XHECK: cond_fail
2057
- // XHECK: unreachable
2055
+ // CHECK-LABEL: @remove_pointer_compare_to_zero_NE :
2056
+ // CHECK-NOT: apply
2057
+ // CHECK: cond_fail
2058
+ // CHECK: unreachable
2059
+ // CHECK: } // end sil function 'remove_pointer_compare_to_zero_NE'
2058
2060
sil [ossa] @remove_pointer_compare_to_zero_NE : $@convention(thin) (Int) -> () {
2059
2061
bb0(%0 : $Int):
2060
2062
%1 = string_literal utf8 "ss"
@@ -2701,11 +2703,11 @@ bb0(%0 : $Builtin.RawPointer, %1 : $*Builtin.UnsafeValueBuffer, %2 : $*GenContai
2701
2703
}
2702
2704
2703
2705
2704
- // CHECK-LABEL: sil [ossa] @remove_dead_code_after_cond_fail
2705
- // XHECK : [[Ref:%.*]] = integer_literal $Builtin.Int1, -1
2706
- // XHECK -NEXT: cond_fail [[Ref]]
2707
- // XHECK -NEXT: unreachable
2708
-
2706
+ // CHECK-LABEL: sil [ossa] @remove_dead_code_after_cond_fail :
2707
+ // CHECK : [[Ref:%.*]] = integer_literal $Builtin.Int1, -1
2708
+ // CHECK -NEXT: cond_fail [[Ref]]
2709
+ // CHECK -NEXT: unreachable
2710
+ // CHECK: } // end sil function 'remove_dead_code_after_cond_fail'
2709
2711
sil [ossa] @remove_dead_code_after_cond_fail : $@convention(thin) () -> (Int32) {
2710
2712
bb0:
2711
2713
%0 = integer_literal $Builtin.Int32, -2
@@ -2717,12 +2719,12 @@ bb0:
2717
2719
2718
2720
2719
2721
// CHECK-LABEL: sil [ossa] @dont_remove_code_after_cond_fail
2720
- // XHECK : bb0([[Cond:%.*]] : $Builtin.Int1):
2721
- // XHECK -NEXT: [[Ref:%.*]] = integer_literal $Builtin.Int32, -2
2722
- // XHECK -NEXT: cond_fail [[Cond]]
2723
- // XHECK -NEXT: [[Ret:%.*]] = struct $Int32 ([[Ref]] : $Builtin.Int32)
2724
- // XHECK -NEXT: return [[Ret]]
2725
-
2722
+ // CHECK : bb0([[Cond:%.*]] : $Builtin.Int1):
2723
+ // CHECK -NEXT: [[Ref:%.*]] = integer_literal $Builtin.Int32, -2
2724
+ // CHECK -NEXT: cond_fail [[Cond]]
2725
+ // CHECK -NEXT: [[Ret:%.*]] = struct $Int32 ([[Ref]] : $Builtin.Int32)
2726
+ // CHECK -NEXT: return [[Ret]]
2727
+ // CHECK: } // end sil function 'dont_remove_code_after_cond_fail'
2726
2728
sil [ossa] @dont_remove_code_after_cond_fail : $@convention(thin) (Builtin.Int1) -> (Int32) {
2727
2729
bb0(%0 : $Builtin.Int1):
2728
2730
%1 = integer_literal $Builtin.Int32, -2
@@ -4078,11 +4080,12 @@ bb0(%0 : $*Builtin.Int64, %1 : @owned $B):
4078
4080
4079
4081
// Test to see if we can constant fold a classify_bridge_object on a Swift class
4080
4082
// to false.
4081
- // CHECK-LABEL: sil [ossa] @test_classify_fold
4082
- // XHECK-NOT: classify_bridge_object
4083
- // XHECK: integer_literal $Builtin.Int1, 0
4084
- // XHECK-NEXT: destroy_value
4085
- // XHECK-NEXT: return
4083
+ // CHECK-LABEL: sil [ossa] @test_classify_fold :
4084
+ // CHECK-NOT: classify_bridge_object
4085
+ // CHECK: destroy_value
4086
+ // CHECK: [[LITERAL:%.*]] = integer_literal $Builtin.Int1, 0
4087
+ // CHECK: return [[LITERAL]]
4088
+ // CHECK: } // end sil function 'test_classify_fold'
4086
4089
sil [ossa] @test_classify_fold : $@convention(thin) (@owned _ContiguousArrayStorage<B>) -> Builtin.Int1 {
4087
4090
bb0(%0 : @owned $_ContiguousArrayStorage<B>):
4088
4091
%1 = unchecked_ref_cast %0 : $_ContiguousArrayStorage<B> to $Builtin.BridgeObject
@@ -4092,10 +4095,11 @@ bb0(%0 : @owned $_ContiguousArrayStorage<B>):
4092
4095
return %3 : $Builtin.Int1
4093
4096
}
4094
4097
4095
- // CHECK-LABEL: sil [ossa] @bridge_cast_noop_fold
4096
- // XHECK: bb0(%0
4097
- // XHECK-NEXT: %1 = upcast %0
4098
- // XHECK-NEXT: return %1
4098
+ // CHECK-LABEL: sil [ossa] @bridge_cast_noop_fold :
4099
+ // CHECK: bb0(%0
4100
+ // CHECK-NEXT: %1 = upcast %0
4101
+ // CHECK-NEXT: return %1
4102
+ // CHECK: } // end sil function 'bridge_cast_noop_fold'
4099
4103
sil [ossa] @bridge_cast_noop_fold : $@convention(thin) (@owned _ContiguousArrayStorage<B>) -> @owned __ContiguousArrayStorageBase {
4100
4104
bb0(%0 : @owned $_ContiguousArrayStorage<B>):
4101
4105
%1 = unchecked_ref_cast %0 : $_ContiguousArrayStorage<B> to $Builtin.BridgeObject
@@ -4178,8 +4182,9 @@ bb0:
4178
4182
}
4179
4183
4180
4184
// CHECK-LABEL: sil [ossa] @conversion_to_and_from_bridge_object
4181
- // XHECK: bb0(%0 : $Builtin.Int64):
4182
- // XHECK-NEXT: return %0
4185
+ // CHECK: bb0(%0 : $Builtin.Int64):
4186
+ // CHECK-NEXT: return %0
4187
+ // CHECK: } // end sil function 'conversion_to_and_from_bridge_object'
4183
4188
sil [ossa] @conversion_to_and_from_bridge_object : $@convention(thin) (Builtin.Int64) -> (Builtin.Int64) {
4184
4189
bb0(%0 : $Builtin.Int64):
4185
4190
%1 = struct $UInt64 (%0 : $Builtin.Int64)
0 commit comments