Skip to content

Commit 97da252

Browse files
committed
Mark two tests that use MemoryLayout as REQUIRES: swift_in_compiler
1 parent 66a3a56 commit 97da252

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

test/SILOptimizer/devirt_protocol_method_invocations.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11

22
// RUN: %target-swift-frontend -module-name devirt_protocol_method_invocations -enable-spec-devirt -O -Xllvm -sil-disable-pass=ExistentialSpecializer -emit-sil %s | %FileCheck %s
33

4+
// REQUIRES: swift_in_compiler
5+
46
protocol PPP {
57
func f()
68
}

test/SILOptimizer/memory-layout.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
// RUN: %target-swift-frontend -experimental-performance-annotations %s -O -sil-verify-all -module-name=test -emit-sil | %FileCheck %s
22

3+
// REQUIRES: swift_in_compiler
4+
35
// Check that constant propagation of MemoryLayout is also done at -Onone to ensure that
4-
// no metadate is created at runtime - which would violate the performance annotation.
6+
// no metadata is created at runtime - which would violate the performance annotation.
57

68
// CHECK-LABEL: sil [no_locks] @$s4test7getSizeSiyF
79
// CHECK: [[I:%[0-9]+]] = integer_literal {{.*}}, 4

0 commit comments

Comments
 (0)