mirror of
https://github.com/apple/swift.git
synced 2026-10-08 12:50:50 +02:00
Tests require the compiler built with SwiftCompilerSources since a long time. So this lit feature was redundant anyway. We can remove it.
27 lines
478 B
Plaintext
27 lines
478 B
Plaintext
// RUN: %target-sil-opt -stack-promotion -sil-opt-profile-repeat=10 %s -o /dev/null 2>&1 | %FileCheck %s
|
|
|
|
|
|
// CHECK: {{.*}} ms: total runtime of all passes
|
|
|
|
sil_stage canonical
|
|
|
|
import Builtin
|
|
import Swift
|
|
import SwiftShims
|
|
|
|
class XX {
|
|
@_hasStorage var x: Int32
|
|
|
|
init()
|
|
}
|
|
|
|
sil @simple_promote : $@convention(thin) () -> Int32 {
|
|
bb0:
|
|
%o1 = alloc_ref $XX
|
|
%l1 = ref_element_addr %o1 : $XX, #XX.x
|
|
%l2 = load %l1 : $*Int32
|
|
strong_release %o1 : $XX
|
|
return %l2 : $Int32
|
|
}
|
|
|