mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Try to thwart the optimizer
This commit is contained in:
@@ -86,12 +86,12 @@ public func runAppendLargeContiguous(N: Int) {
|
|||||||
public func runAppendSmallContiguousRepeatedly(N: Int) {
|
public func runAppendSmallContiguousRepeatedly(N: Int) {
|
||||||
for _ in 1...N {
|
for _ in 1...N {
|
||||||
var rrc = NaiveRRC()
|
var rrc = NaiveRRC()
|
||||||
for _ in 1...30_000_000 {
|
for _ in 1...10_000_000 {
|
||||||
rrc.append(contentsOf: contiguous)
|
rrc.append(contentsOf: contiguous)
|
||||||
}
|
|
||||||
blackHole(rrc)
|
blackHole(rrc)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@inline(never)
|
@inline(never)
|
||||||
public func runInitLargeContiguous(N: Int) {
|
public func runInitLargeContiguous(N: Int) {
|
||||||
|
|||||||
Reference in New Issue
Block a user