Files
swift-mirror/validation-test/compiler_scale/array_init.swift.gyb
Andrew Trick 8de89c392a Add a scale-test validation test for quadratic behavior during inlining.
Adds a stat to SILInstruction's transferNodesFromList to record the
number of times an instruction is transfered to another block. This is
the only way I can think of to detect quadratic behavior of passes
that split basic blocks.
2018-11-26 15:24:41 -08:00

14 lines
292 B
Plaintext

// RUN: %scale-test -Onone --begin 0 --end 10 --step 1 --select transferNodesFromList %s
// REQUIRES: OS=macosx
// REQUIRES: asserts
// Test that mandatory inlining is linear on a long series of integer
// initialization calls.
let _: [Int] = [
%for i in range(0, N):
1,
%end
1
]