Skip to content

Commit b05ceb9

Browse files
authored
Merge pull request #67805 from tshortli/remove-duplicate-run-commands
NFC: Remove duplicated RUN lines from SILOptimizer tests
2 parents 7ea5b1e + 0e5cfa6 commit b05ceb9

27 files changed

+1
-27
lines changed

test/SILOptimizer/access_enforcement_noescape_error.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -module-name access_enforcement_noescape -enforce-exclusivity=checked -Onone -emit-sil -swift-version 4 -verify -parse-as-library %s
2-
// RUN: %target-swift-frontend -module-name access_enforcement_noescape -enforce-exclusivity=checked -Onone -emit-sil -swift-version 4 -verify -parse-as-library %s
32
// REQUIRES: asserts
43

54
// This is the subset of tests from access_enforcement_noescape.swift

test/SILOptimizer/access_wmo_diagnose.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -parse-as-library -emit-sil -enforce-exclusivity=checked -primary-file %s -o /dev/null -verify
32

43
// AccessEnforcementWMO assumes that the only way to address a global or static
54
// property is via a formal begin_access. If we ever allow keypaths for static

test/SILOptimizer/bridged_casts_folding.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -O -emit-sil %s | %FileCheck %s
2-
// RUN: %target-swift-frontend -O -emit-sil %s | %FileCheck %s
32

43
// REQUIRES: objc_interop
54

test/SILOptimizer/cast_folding_objc_generics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -module-name cast_folding_objc_generics -O -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xllvm -sil-disable-pass=PerfInliner -emit-sil %s | %FileCheck %s
2-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -module-name cast_folding_objc_generics -O -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xllvm -sil-disable-pass=PerfInliner -emit-sil %s | %FileCheck %s
32

43
// REQUIRES: objc_interop
54

test/SILOptimizer/constant_propagation_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -sdk %S/../SILGen/Inputs %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -sdk %S/../SILGen/Inputs %s -o /dev/null -verify
32

43
// <rdar://problem/18213320> enum with raw values that are too big are not diagnosed
54
enum EnumWithTooLargeElements : UInt8 {

test/SILOptimizer/definite_init_address_only_let.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s
2-
// RUN: %target-swift-frontend -emit-sil -verify %s
32

43
func foo<T>(a: Bool, t: T) {
54
let x: T

test/SILOptimizer/definite_init_diagnostics_globals.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32

43
import Swift
54

test/SILOptimizer/definite_init_diagnostics_objc.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %target-swift-frontend -emit-sil -sdk %S/../SILGen/Inputs %s -I %S/../SILGen/Inputs -enable-source-import -parse-stdlib -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -sdk %S/../SILGen/Inputs %s -I %S/../SILGen/Inputs -enable-source-import -parse-stdlib -o /dev/null -verify
2+
33
// REQUIRES: objc_interop
44

55
import Swift

test/SILOptimizer/definite_init_existential_let.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s
2-
// RUN: %target-swift-frontend -emit-sil -verify %s
32

43
// rdar://problem/29716016 - Check that we properly enforce DI on `let`
54
// variables and class properties.

test/SILOptimizer/definite_init_extension.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -verify %s -o /dev/null
2-
// RUN: %target-swift-frontend -emit-sil -verify %s -o /dev/null
32

43
struct S<T> {
54
let t: T // expected-note {{'self.t.1' not initialized}}

test/SILOptimizer/definite_init_failable_initializers_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -disable-objc-attr-requires-foundation-module -verify %s
2-
// RUN: %target-swift-frontend -emit-sil -disable-objc-attr-requires-foundation-module -verify %s
32

43
// High-level tests that DI rejects certain invalid idioms for early
54
// return from initializers.

test/SILOptimizer/definite_init_lvalue_let_witness_methods.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -disable-objc-attr-requires-foundation-module -verify %s
2-
// RUN: %target-swift-frontend -emit-sil -disable-objc-attr-requires-foundation-module -verify %s
32

43
// High-level tests that DI rejects passing let constants to
54
// mutating witness methods

test/SILOptimizer/definite_init_value_types_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil %s -o /dev/null -verify
32

43
struct EmptyStruct {}
54

test/SILOptimizer/diagnostic_constant_propagation-swift4.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// These are tests for diagnostics produced by constant propagation pass.
54
// These are specific to Swift 4.

test/SILOptimizer/diagnostic_constant_propagation.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// These are tests for diagnostics produced by constant propagation pass.
54
// Due to the change in the implementation of Integer initializers some of the

test/SILOptimizer/diagnostic_constant_propagation_floats.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// These are tests for diagnostics produced by constant propagation pass
54
// on floating-point operations.

test/SILOptimizer/diagnostic_constant_propagation_floats_nonx86.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// REQUIRES: !(CPU=i386 || CPU=x86_64)
54
//

test/SILOptimizer/diagnostic_constant_propagation_floats_x86.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// REQUIRES: CPU=i386 || CPU=x86_64
54
// UNSUPPORTED: OS=windows-msvc

test/SILOptimizer/exclusivity_static_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -enforce-exclusivity=checked -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -enforce-exclusivity=checked -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
32

43
import Swift
54

test/SILOptimizer/exclusivity_static_diagnostics_objc.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/optional_closure_bridging.h -enforce-exclusivity=checked -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -import-objc-header %S/Inputs/optional_closure_bridging.h -enforce-exclusivity=checked -swift-version 4 -emit-sil -primary-file %s -o /dev/null -verify
32
// REQUIRES: objc_interop
43

54
import Foundation

test/SILOptimizer/generalized_accessors.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -emit-sil -primary-file %s -o /dev/null -verify
32
//
43
// Tests for yield-once diagnostics emitted for generalized accessors.
54

test/SILOptimizer/invalid_escaping_captures.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil %s -verify
2-
// RUN: %target-swift-frontend -emit-sil %s -verify
32

43
func takesEscaping(_: @escaping () -> ()) {}
54

test/SILOptimizer/mandatory_inlining_circular.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify
2-
// RUN: %target-swift-frontend -sil-verify-all -emit-sil %s -o /dev/null -verify
32

43
@_transparent func waldo(_ x: Double) -> Double {
54
return fred(x); // expected-error {{inlining 'transparent' functions forms circular loop}} expected-note 1 {{while inlining here}}

test/SILOptimizer/noescape_param_exclusivity.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -emit-sil %s -verify
2-
// RUN: %target-swift-frontend -emit-sil %s -verify
32

43
func test0(a: (() -> ()) -> (), b: () -> ()) {
54
a(b) // expected-error {{passing a non-escaping function parameter 'b' to a call to a non-escaping function parameter can allow re-entrant modification of a variable}}

test/SILOptimizer/polymorphic_builtins_diagnostics.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -parse-stdlib -emit-sil -verify %s
2-
// RUN: %target-swift-frontend -parse-stdlib -emit-sil -verify %s
32

43
import Swift
54

test/SILOptimizer/pound_assert.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: %target-swift-frontend -enable-experimental-static-assert -emit-sil %s -verify
2-
// RUN: %target-swift-frontend -enable-experimental-static-assert -emit-sil %s -verify
32
// REQUIRES: asserts
43

54
//===----------------------------------------------------------------------===//

test/SILOptimizer/pound_assert_test_recursive.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
// RUN: not %target-swift-frontend -enable-experimental-static-assert -emit-sil %s 2>&1 | %FileCheck %s
2-
// RUN: not %target-swift-frontend -enable-experimental-static-assert -emit-sil %s 2>&1 | %FileCheck %s
32

43
// This is a special FileCheck test for testing that we properly catch that we
54
// are recursing here. The reason why this is separate from the other

0 commit comments

Comments
 (0)