File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -477,7 +477,7 @@ static void addPerfEarlyModulePassPipeline(SILPassPipelinePlan &P) {
477
477
// Cleanup after SILGen: remove trivial copies to temporaries.
478
478
P.addTempRValueOpt ();
479
479
// Cleanup after SILGen: remove unneeded borrows/copies.
480
- if (! P.getOptions ().DisableCopyPropagation ) {
480
+ if (P.getOptions ().EnableCopyPropagation ) {
481
481
P.addCopyPropagation ();
482
482
}
483
483
P.addSemanticARCOpts ();
Original file line number Diff line number Diff line change 1
1
// RUN: %target-run-simple-swift(-Onone -parse-stdlib -Xfrontend -enable-copy-propagation) | %FileCheck %s --check-prefixes=CHECK,CHECK-DBG
2
- // RUN: %target-run-simple-swift(-O -parse-stdlib) | %FileCheck --check-prefixes=CHECK,CHECK-OPT %s
2
+ // RUN: %target-run-simple-swift(-O -parse-stdlib -Xfrontend -enable-copy-propagation ) | %FileCheck --check-prefixes=CHECK,CHECK-OPT %s
3
3
4
4
// REQUIRES: executable_test
5
5
// REQUIRES: objc_interop
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -emit-ir -swift-version 5 -O -primary-file %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
1
+ // RUN: %target-swift-frontend -emit-ir -swift-version 5 -O -enable-copy-propagation - primary-file %s | %FileCheck %s --check-prefix=CHECK --check-prefix=CHECK-%target-ptrsize
2
2
//
3
3
// REQUIRES: VENDOR=apple
4
4
// REQUIRES: swift_stdlib_no_asserts
Original file line number Diff line number Diff line change 1
- // RUN: %target-swiftc_driver -O -Rpass-missed=sil-opt-remark-gen -Xllvm -sil-disable-pass=FunctionSignatureOpts -emit-sil %s -o /dev/null -Xfrontend -verify
1
+ // RUN: %target-swiftc_driver -O -Rpass-missed=sil-opt-remark-gen -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xfrontend -enable-copy-propagation - emit-sil %s -o /dev/null -Xfrontend -verify
2
2
// REQUIRES: optimized_stdlib,swift_stdlib_no_asserts
3
3
4
4
public class Klass {
Original file line number Diff line number Diff line change 1
- // RUN: %target-swiftc_driver -O -Rpass-missed=sil-opt-remark-gen -Xllvm -sil-disable-pass=FunctionSignatureOpts -emit-sil %s -o /dev/null -Xfrontend -verify
1
+ // RUN: %target-swiftc_driver -O -Rpass-missed=sil-opt-remark-gen -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xfrontend -enable-copy-propagation - emit-sil %s -o /dev/null -Xfrontend -verify
2
2
3
3
// RUN: %empty-directory(%t)
4
- // RUN: %target-swiftc_driver -wmo -O -Xllvm -sil-disable-pass=FunctionSignatureOpts -emit-sil -save-optimization-record=yaml -save-optimization-record-path %t/note.yaml %s -o /dev/null && %FileCheck --input-file=%t/note.yaml %s
4
+ // RUN: %target-swiftc_driver -wmo -O -Xllvm -sil-disable-pass=FunctionSignatureOpts -Xfrontend -enable-copy-propagation - emit-sil -save-optimization-record=yaml -save-optimization-record-path %t/note.yaml %s -o /dev/null && %FileCheck --input-file=%t/note.yaml %s
5
5
6
6
// REQUIRES: optimized_stdlib,swift_stdlib_no_asserts
7
7
Original file line number Diff line number Diff line change 1
- // RUN: %target-swift-frontend -Osize -import-objc-header %S/Inputs/Outliner.h %s -emit-sil -enforce-exclusivity=unchecked | %FileCheck %s
2
- // RUN: %target-swift-frontend -Osize -g -import-objc-header %S/Inputs/Outliner.h %s -emit-sil -enforce-exclusivity=unchecked | %FileCheck %s
1
+ // RUN: %target-swift-frontend -Osize -import-objc-header %S/Inputs/Outliner.h %s -emit-sil -enforce-exclusivity=unchecked -enable-copy-propagation | %FileCheck %s
2
+ // RUN: %target-swift-frontend -Osize -g -import-objc-header %S/Inputs/Outliner.h %s -emit-sil -enforce-exclusivity=unchecked -enable-copy-propagation | %FileCheck %s
3
3
4
4
// REQUIRES: objc_interop
5
5
// REQUIRES: optimized_stdlib
You can’t perform that action at this time.
0 commit comments