Skip to content

Commit 99eadd0

Browse files
authored
Re-enable VFE/WME tests, take 3, rdar://84643923 (swiftlang#39955)
1 parent 300bd98 commit 99eadd0

File tree

3 files changed

+5
-14
lines changed

3 files changed

+5
-14
lines changed

test/IRGen/virtual-function-elimination-exec.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// the program).
44

55
// RUN: %empty-directory(%t)
6-
// RUN: %target-build-swift -Xfrontend -enable-llvm-vfe %s -emit-ir -o %t/main.ll
6+
// RUN: %target-build-swift -Xfrontend -enable-llvm-vfe %s -Onone -emit-ir -o %t/main.ll
77
// RUN: %target-clang %t/main.ll -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -flto -o %t/main
88
// RUN: %target-run %t/main | %FileCheck %s
99

@@ -19,9 +19,6 @@
1919
// loaded too late").
2020
// REQUIRES: no_asan
2121

22-
// Disable to unblock CI
23-
// REQUIRES: rdar84643923
24-
2522
class MyClass {
2623
func foo() { print("MyClass.foo") }
2724
func bar() { print("MyClass.bar") }

test/IRGen/witness-method-elimination-exec.swift

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
// the program).
44

55
// RUN: %empty-directory(%t)
6-
// RUN: %target-build-swift -Xfrontend -enable-llvm-wme %s -emit-ir -o %t/main.ll
6+
// RUN: %target-build-swift -Xfrontend -enable-llvm-wme %s -Onone -emit-ir -o %t/main.ll
77
// RUN: %target-clang %t/main.ll -isysroot %sdk -L%swift_obj_root/lib/swift/%target-sdk-name -flto -o %t/main
88
// RUN: %target-run %t/main | %FileCheck %s
99

@@ -19,9 +19,6 @@
1919
// loaded too late").
2020
// REQUIRES: no_asan
2121

22-
// Disable to unblock CI
23-
// REQUIRES: rdar84643923
24-
2522
protocol TheProtocol {
2623
func func1_live()
2724
func func2_dead()

test/IRGen/witness-method-elimination-two-modules.swift

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,20 +6,20 @@
66
// RUN: %empty-directory(%t)
77

88
// (1) Build library swiftmodule
9-
// RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme \
9+
// RUN: %target-build-swift -parse-as-library -Onone -Xfrontend -enable-llvm-wme \
1010
// RUN: %s -DLIBRARY -module-name Library \
1111
// RUN: -emit-module -o %t/Library.swiftmodule \
1212
// RUN: -emit-tbd -emit-tbd-path %t/libLibrary.tbd -Xfrontend -tbd-install_name=%t/libLibrary.dylib
1313

1414
// (2) Build client
15-
// RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme \
15+
// RUN: %target-build-swift -parse-as-library -Onone -Xfrontend -enable-llvm-wme \
1616
// RUN: %s -DCLIENT -module-name Main -I%t -L%t -lLibrary -o %t/main
1717

1818
// (3) Extract a list of used symbols by client from library
1919
// RUN: %llvm-nm --undefined-only -m %t/main | grep 'from libLibrary' | awk '{print $3}' > %t/used-symbols
2020

2121
// (4) Now produce the .dylib with just the symbols needed by the client
22-
// RUN: %target-build-swift -parse-as-library -Xfrontend -enable-llvm-wme -Xfrontend -internalize-at-link \
22+
// RUN: %target-build-swift -parse-as-library -Onone -Xfrontend -enable-llvm-wme -Xfrontend -internalize-at-link \
2323
// RUN: %s -DLIBRARY -lto=llvm-full %lto_flags -module-name Library \
2424
// RUN: -emit-library -o %t/libLibrary.dylib \
2525
// RUN: -Xlinker -exported_symbols_list -Xlinker %t/used-symbols -Xlinker -dead_strip
@@ -40,9 +40,6 @@
4040
// loaded too late").
4141
// REQUIRES: no_asan
4242

43-
// Disable to unblock CI
44-
// REQUIRES: rdar84643923
45-
4643
#if LIBRARY
4744

4845
public protocol MyProtocol {

0 commit comments

Comments
 (0)