@@ -334,47 +334,6 @@ bb0:
334334 return %10 : $()
335335}
336336
337- sil [_semantics "keypath.entry"] @stdlibKeyPathEntry: $@convention(thin) () -> () {
338- bb0:
339- %ret = tuple ()
340- return %ret : $()
341- }
342-
343- // public func testDomKeyPath() {
344- // Checks 3 scopes, two of which are dominated and access the same storage
345- // However, There's a call to a "fake" key-path entry function - bail for now
346- //
347- // CHECK-LABEL: sil @testDomKeyPath : $@convention(thin) () -> () {
348- // CHECK: [[GLOBAL:%.*]] = global_addr @globalX : $*X
349- // CHECK-NEXT: [[BEGIN:%.*]] = begin_access [read] [dynamic] [[GLOBAL]] : $*X
350- // CHECK-NEXT: load [[BEGIN]] : $*X
351- // CHECK-NEXT: end_access [[BEGIN]] : $*X
352- // CHECK-NEXT: [[BEGIN:%.*]] = begin_access [read] [dynamic] [no_nested_conflict] [[GLOBAL]] : $*X
353- // CHECK-NEXT: load [[BEGIN]] : $*X
354- // CHECK-NEXT: end_access [[BEGIN]] : $*X
355- // CHECK-NEXT: [[BEGIN:%.*]] = begin_access [read] [dynamic] [no_nested_conflict] [[GLOBAL]] : $*X
356- // CHECK-NEXT: load [[BEGIN]] : $*X
357- // CHECK-NEXT: end_access [[BEGIN]] : $*X
358- // CHECK-NOT: begin_access
359- // CHECK-LABEL: } // end sil function 'testDomKeyPath'
360- sil @testDomKeyPath : $@convention(thin) () -> () {
361- bb0:
362- %0 = global_addr @globalX: $*X
363- %1 = begin_access [read] [dynamic] %0 : $*X
364- %2 = load %1 : $*X
365- end_access %1 : $*X
366- %4 = begin_access [read] [dynamic] [no_nested_conflict] %0 : $*X
367- %5 = load %4 : $*X
368- end_access %4 : $*X
369- %7 = begin_access [read] [dynamic] [no_nested_conflict] %0 : $*X
370- %8 = load %7 : $*X
371- end_access %7 : $*X
372- %keyRef = function_ref @stdlibKeyPathEntry : $@convention(thin) () -> ()
373- apply %keyRef() : $@convention(thin) () -> ()
374- %10 = tuple ()
375- return %10 : $()
376- }
377-
378337// public func testLoopDominatingAccessAdderSimple() {
379338// Checks creation of new scope in loop preheader
380339//
0 commit comments