Skip to content

Commit 979196c

Browse files
committed
[Test] For disabling destroy hoisting.
1 parent 672ec76 commit 979196c

File tree

5 files changed

+6
-8
lines changed

5 files changed

+6
-8
lines changed

test/SILOptimizer/assemblyvision_remark/chacha.swift

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ public func run_ChaCha(_ N: Int) {
3232

3333
var checkedtext = Array(repeating: UInt8(0), count: 1024)
3434
ChaCha20.encrypt(bytes: &checkedtext, key: key, nonce: nonce)
35-
checkResult(checkedtext) // expected-remark {{release of type '}}
36-
// expected-note @-3 {{of 'checkedtext}}
35+
checkResult(checkedtext)// expected-note @-2 {{of 'checkedtext}}
36+
3737

3838
var plaintext = Array(repeating: UInt8(0), count: 30720)
3939
for _ in 1...N {
@@ -47,3 +47,4 @@ public func run_ChaCha(_ N: Int) {
4747
// expected-note @-16 {{of 'nonce}}
4848
// expected-remark @-4 {{release of type '}}
4949
// expected-note @-19 {{of 'key}}
50+
// expected-remark @-6 {{release of type '}}

test/SILOptimizer/enum_payload_modification_opt.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
// RUN: %target-run %t/a.out | %FileCheck %s
44

55
// REQUIRES: executable_test,swift_stdlib_no_asserts,optimized_stdlib
6+
// REQUIRES: rdar89260664
67

78
final class Storage {
89
var v : Int

test/SILOptimizer/pointer_conversion.swift

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,9 @@ public func testMutableArray() {
5858
// CHECK: [[POINTER:%.+]] = struct $UnsafeMutableRawPointer (
5959
// CHECK-NEXT: [[DEP_POINTER:%.+]] = mark_dependence [[POINTER]] : $UnsafeMutableRawPointer on {{.*}} : $__ContiguousArrayStorageBase
6060
// CHECK: [[FN:%.+]] = function_ref @takesMutableRawPointer
61-
// CHECK: strong_retain {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
6261
// CHECK: apply [[FN]]([[DEP_POINTER]])
6362
// CHECK-NOT: {{^bb[0-9]+:}}
6463
// CHECK: strong_release {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
65-
// CHECK: strong_release {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
6664
// CHECK: dealloc_stack {{%.+}} : $*Array<Int>
6765
// CHECK-NEXT: [[EMPTY:%.+]] = tuple ()
6866
// CHECK-NEXT: return [[EMPTY]]
@@ -76,11 +74,9 @@ public func testMutableArrayToOptional() {
7674
// CHECK-NEXT: [[DEP_POINTER:%.+]] = mark_dependence [[POINTER]] : $UnsafeMutableRawPointer on {{.*}} : $__ContiguousArrayStorageBase
7775
// CHECK-NEXT: [[OPT_POINTER:%.+]] = enum $Optional<UnsafeMutableRawPointer>, #Optional.some!enumelt, [[DEP_POINTER]]
7876
// CHECK: [[FN:%.+]] = function_ref @takesOptMutableRawPointer
79-
// CHECK: strong_retain {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
8077
// CHECK: apply [[FN]]([[OPT_POINTER]])
8178
// CHECK-NOT: {{^bb[0-9]+:}}
8279
// CHECK: strong_release {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
83-
// CHECK: strong_release {{%.+}} : ${{Builtin[.]BridgeObject|__ContiguousArrayStorageBase}}
8480
// CHECK: dealloc_stack {{%.+}} : $*Array<Int>
8581
// CHECK-NEXT: [[EMPTY:%.+]] = tuple ()
8682
// CHECK-NEXT: return [[EMPTY]]

test/SILOptimizer/templvalueopt.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-swift-frontend -module-name=test -O -emit-sil %s | %FileCheck %s
1+
// RUN: %target-swift-frontend -module-name=test -O -enable-ossa-modules -emit-sil %s | %FileCheck %s
22

33
// RUN: %empty-directory(%t)
44
// RUN: %target-build-swift -O -module-name=test %s -o %t/a.out

validation-test/SILOptimizer/lexical-lifetimes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library -Xfrontend -enable-copy-propagation -Xllvm -enable-destroy-hoisting=false) | %FileCheck %s
1+
// RUN: %target-run-simple-swift(-Xfrontend -disable-availability-checking -parse-as-library -Xfrontend -enable-copy-propagation) | %FileCheck %s
22

33
// REQUIRES: executable_test
44
// REQUIRES: concurrency

0 commit comments

Comments
 (0)