Skip to content

Commit 423c062

Browse files
authored
Merge pull request #18902 from atrick/copyprop
CopyPropagation for SILValues with ownership.
2 parents 1057985 + 098759f commit 423c062

File tree

4 files changed

+1116
-0
lines changed

4 files changed

+1116
-0
lines changed

include/swift/SILOptimizer/PassManager/Passes.def

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,8 @@ PASS(ConditionForwarding, "condition-forwarding",
108108
"Conditional Branch Forwarding to Fold SIL switch_enum")
109109
PASS(CopyForwarding, "copy-forwarding",
110110
"Copy Forwarding to Remove Redundant Copies")
111+
PASS(CopyPropagation, "copy-propagation",
112+
"Copy propagation to Remove Redundant SSA Copies")
111113
PASS(EpilogueARCMatcherDumper, "sil-epilogue-arc-dumper",
112114
"Print Epilogue retains of Returned Values and Argument releases")
113115
PASS(EpilogueRetainReleaseMatcherDumper, "sil-epilogue-retain-release-dumper",

lib/SILOptimizer/Transforms/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ silopt_register_sources(
99
CSE.cpp
1010
ConditionForwarding.cpp
1111
CopyForwarding.cpp
12+
CopyPropagation.cpp
1213
DeadCodeElimination.cpp
1314
DeadObjectElimination.cpp
1415
DeadStoreElimination.cpp

0 commit comments

Comments
 (0)