Skip to content

Commit b87ca95

Browse files
committed
Remove the flag -disable-func-sig-opts from tests that don't need it.
I am trying to kill the flag -disable-func-sig-opts. This commit removes the flag from the tests that don't need it. The next step would be to fix the tests that do need it.
1 parent 5b1f42c commit b87ca95

12 files changed

+13
-13
lines changed

test/SILPasses/globalopt_global_propagation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -emit-sil %s | FileCheck %s
2-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -wmo -emit-sil %s | FileCheck -check-prefix=CHECK-WMO %s
1+
// RUN: %target-swift-frontend -O -emit-sil %s | FileCheck %s
2+
// RUN: %target-swift-frontend -O -wmo -emit-sil %s | FileCheck -check-prefix=CHECK-WMO %s
33

44
// Check that values of internal and private global variables, which are provably assigned only
55
// once, are propagated into their uses and enable further optimizations like constant

test/SILPasses/globalopt_let_propagation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -emit-sil -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -emit-sil -primary-file %s | FileCheck %s
22

33
// Check that values of static let and global let variables are propagated into their uses
44
// and enable further optimizations like constant propagation, simplifications, etc.

test/SILPasses/inline_recursive.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -primary-file %s -disable-func-sig-opts -parse-as-library -emit-sil -O | FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -parse-as-library -emit-sil -O | FileCheck %s
22

33
private func recFunc(x: Int) -> Int {
44
if x > 0 {

test/SILPasses/inline_self.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -O -emit-sil -disable-func-sig-opts -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -emit-sil -primary-file %s | FileCheck %s
22
//
33
// This is a .swift test because the SIL parser does not support Self.
44

test/SILPasses/let_propagation.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -primary-file %s -disable-func-sig-opts -emit-sil -O | FileCheck %s
1+
// RUN: %target-swift-frontend -primary-file %s -emit-sil -O | FileCheck %s
22

33
// Check that LoadStoreOpts can handle "let" variables properly.
44
// Such variables should be loaded only once and their loaded values can be reused.

test/SILPasses/recursive_func.sil

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -O %s -disable-func-sig-opts -emit-sil | FileCheck %s
1+
// RUN: %target-swift-frontend -O %s -emit-sil | FileCheck %s
22

33
// rdar://16761933
44
// Make sure we can handle recursive function within a class.

test/SILPasses/spec_recursion.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -O -disable-func-sig-opts -emit-sil %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -emit-sil %s | FileCheck %s
22

33
// Make sure we are not looping forever.
44

test/SILPasses/specialize_anyobject.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -sil-inline-threshold 0 -emit-sil -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -sil-inline-threshold 0 -emit-sil -primary-file %s | FileCheck %s
22

33
// rdar://problem/20338028
44
protocol PA: class { }

test/SILPasses/specialize_chain.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -emit-sil -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -emit-sil -primary-file %s | FileCheck %s
22

33
// We can't deserialize apply_inst with subst lists. When radar://14443304
44
// is fixed then we should convert this test to a SIL test.

test/SILPasses/specialize_checked_cast_branch.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -emit-sil -O -sil-inline-threshold 0 %s -o - | not FileCheck %s
1+
// RUN: %target-swift-frontend -emit-sil -O -sil-inline-threshold 0 %s -o - | not FileCheck %s
22

33
// FIXME: rdar://problem/18603827
44

test/SILPasses/specialize_ext.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -emit-sil -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -emit-sil -primary-file %s | FileCheck %s
22

33
struct XXX<T> {
44
init(t : T) {m_t = t}

test/SILPasses/specialize_self.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -disable-func-sig-opts -O -sil-inline-threshold 0 -emit-sil -primary-file %s | FileCheck %s
1+
// RUN: %target-swift-frontend -O -sil-inline-threshold 0 -emit-sil -primary-file %s | FileCheck %s
22

33
// CHECK-NOT: generic specialization <Swift.AnyObject, Self> of specialize_self.cast <A, B>(A) -> Swift.Optional<B>
44

0 commit comments

Comments
 (0)