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 @@ -126,6 +126,10 @@ static llvm::cl::opt<bool> EnableCopyPropagation(
126
126
" enable-copy-propagation" ,
127
127
llvm::cl::desc (" Enable the copy propagation pass." ));
128
128
129
+ static llvm::cl::opt<bool > DisableCopyPropagation (
130
+ " disable-copy-propagation" ,
131
+ llvm::cl::desc (" Disable the copy propagation pass." ));
132
+
129
133
namespace {
130
134
enum class EnforceExclusivityMode {
131
135
Unchecked, // static only
@@ -475,6 +479,7 @@ int main(int argc, char **argv) {
475
479
SILOpts.IgnoreAlwaysInline = IgnoreAlwaysInline;
476
480
SILOpts.EnableOSSAModules = EnableOSSAModules;
477
481
SILOpts.EnableCopyPropagation = EnableCopyPropagation;
482
+ SILOpts.DisableCopyPropagation = DisableCopyPropagation;
478
483
479
484
serialization::ExtendedValidationInfo extendedInfo;
480
485
llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
You can’t perform that action at this time.
0 commit comments