You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: Ensure end_cow_mutation_addr is not inserted within the loop
179
+
// This happens because MutableSpan's subscript is implemented with unsafe addressors which introduce mark_dependence [unresolved].
180
+
// This triggers lifetime-dependence-scope-fixup which unnecessarily inserts end_cow_mutation_addr due to the conservative analysis of `mayHaveMutableSpan` on generic types.
181
+
// TODO: Improve `mayHaveMutableSpan` to avoid this.
182
+
// CHECK-LABEL: sil @$s31mutable_span_bounds_check_tests0a1_B7_doubleyys11MutableSpanVyxGzAA1PRzlF :
183
+
// CHECK-SIL: bb3({{.*}}):
184
+
// TODO-CHECK-NOT: end_cow_mutation
185
+
// CHECK-LABEL: } // end sil function '$s31mutable_span_bounds_check_tests0a1_B7_doubleyys11MutableSpanVyxGzAA1PRzlF'
// CHECK-LABEL: sil @$s31mutable_span_bounds_check_tests0a1_B23_double_bitwisecopyableyys11MutableSpanVyxGzs15BitwiseCopyableRzAA1PRzlF :
193
+
// CHECK-SIL: bb3({{.*}}):
194
+
// CHECK-NOT: end_cow_mutation
195
+
// CHECK-LABEL: } // end sil function '$s31mutable_span_bounds_check_tests0a1_B23_double_bitwisecopyableyys11MutableSpanVyxGzs15BitwiseCopyableRzAA1PRzlF'
// CHECK-LABEL: sil @$s31mutable_span_bounds_check_tests0a1_B22_equal_bitwisecopyableySbs11MutableSpanVyxGz_Sits15BitwiseCopyableRzSQRzlF :
203
+
// CHECK-NOT: copy_addr
204
+
// CHECK-LABEL: } // end sil function '$s31mutable_span_bounds_check_tests0a1_B22_equal_bitwisecopyableySbs11MutableSpanVyxGz_Sits15BitwiseCopyableRzSQRzlF'
// CHECK-LABEL: sil @$s31mutable_span_bounds_check_tests0a1_B28_get_element_bitwisecopyableyxs11MutableSpanVyxGz_Sits15BitwiseCopyableRzlF :
210
+
// CHECK-NOT: copy_addr
211
+
// CHECK-LABEL: } // end sil function '$s31mutable_span_bounds_check_tests0a1_B28_get_element_bitwisecopyableyxs11MutableSpanVyxGz_Sits15BitwiseCopyableRzlF'
0 commit comments