Skip to content

Commit 6ab6954

Browse files
authored
Merge pull request swiftlang#22388 from shajrawi/licm_test
2 parents 0cd01eb + ae6b512 commit 6ab6954

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

test/SILOptimizer/licm_exclusivity.swift

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,13 @@ func run_ReversedArray(_ N: Int) {
3535
// TEST2: Hoist and Sink pairs attempt
3636
// TEST2: Hoisted
3737

38-
// FIXME: <rdar://problem/45931225> Re-enable the below
39-
//
40-
// xTESTSIL-LABEL: sil @$s16licm_exclusivity20count_unicodeScalarsyySS17UnicodeScalarViewVF : $@convention(thin) (@guaranteed String.UnicodeScalarView) -> () {
41-
// xTESTSIL: bb0(%0 : $String.UnicodeScalarView)
42-
// xTESTSIL-NEXT: %1 = global_addr @$s16licm_exclusivity5countSivp : $*Int
43-
// xTESTSIL: begin_access [modify] [dynamic] [no_nested_conflict] %1 : $*Int
44-
// xTESTSIL: end_access
45-
// xTESTSIL: return
38+
// TESTSIL-LABEL: sil @$s16licm_exclusivity20count_unicodeScalarsyySS17UnicodeScalarViewVF : $@convention(thin) (@guaranteed String.UnicodeScalarView) -> () {
39+
// TESTSIL: bb0(%0 : $String.UnicodeScalarView)
40+
// TESTSIL: bb5:
41+
// TESTSIL-NEXT: [[A1:%.*]] = global_addr @$s16licm_exclusivity5countSivp : $*Int
42+
// TESTSIL: begin_access [modify] [dynamic] [no_nested_conflict] [[A1]] : $*Int
43+
// TESTSIL: end_access
44+
// TESTSIL: return
4645
var count: Int = 0
4746
public func count_unicodeScalars(_ s: String.UnicodeScalarView) {
4847
for _ in s {

0 commit comments

Comments
 (0)