Files
swift-mirror/test/SILOptimizer/pass_profiling.sil
Erik Eckstein 3243f87204 tests: remove the lit feature swift_in_compiler
Tests require the compiler built with SwiftCompilerSources since a long time.
So this lit feature was redundant anyway. We can remove it.
2026-06-30 14:47:56 +02:00

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
}