mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
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.
14 lines
292 B
Plaintext
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
|
|
]
|