File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,10 @@ static llvm::cl::opt<bool> EnableOSSAModules(
122
122
" this is disabled we do not serialize in OSSA "
123
123
" form when optimizing." ));
124
124
125
+ static llvm::cl::opt<bool > EnableCopyPropagation (
126
+ " enable-copy-propagation" ,
127
+ llvm::cl::desc (" Enable the copy propagation pass." ));
128
+
125
129
namespace {
126
130
enum class EnforceExclusivityMode {
127
131
Unchecked, // static only
@@ -470,6 +474,7 @@ int main(int argc, char **argv) {
470
474
SILOpts.EnableSpeculativeDevirtualization = EnableSpeculativeDevirtualization;
471
475
SILOpts.IgnoreAlwaysInline = IgnoreAlwaysInline;
472
476
SILOpts.EnableOSSAModules = EnableOSSAModules;
477
+ SILOpts.EnableCopyPropagation = EnableCopyPropagation;
473
478
474
479
serialization::ExtendedValidationInfo extendedInfo;
475
480
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
You can’t perform that action at this time.
0 commit comments