Skip to content

Commit bcb698b

Browse files
committed
AngryPhonebook: uppercased and lowercased are functions so call them
We were not doing any work in this benchmark at -O because we were removing dead code (to build a tuple of partially applied functions). Now that we are actually calling the functions we can't eliminate dead code. This is going to appear as a regression but it is none.
1 parent f8287f4 commit bcb698b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

benchmark/single-source/AngryPhonebook.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ public func run_AngryPhonebook(N: Int) {
3636
for _ in 1...N {
3737
for firstname in words {
3838
for lastname in words {
39-
(firstname.uppercased, lastname.lowercased)
39+
(firstname.uppercased(), lastname.lowercased())
4040
}
4141
}
4242
}

0 commit comments

Comments
 (0)