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(
126126 " enable-copy-propagation" ,
127127 llvm::cl::desc (" Enable the copy propagation pass." ));
128128
129+ static llvm::cl::opt<bool > DisableCopyPropagation (
130+ " disable-copy-propagation" ,
131+ llvm::cl::desc (" Disable the copy propagation pass." ));
132+
129133namespace {
130134enum class EnforceExclusivityMode {
131135 Unchecked, // static only
@@ -475,6 +479,7 @@ int main(int argc, char **argv) {
475479 SILOpts.IgnoreAlwaysInline = IgnoreAlwaysInline;
476480 SILOpts.EnableOSSAModules = EnableOSSAModules;
477481 SILOpts.EnableCopyPropagation = EnableCopyPropagation;
482+ SILOpts.DisableCopyPropagation = DisableCopyPropagation;
478483
479484 serialization::ExtendedValidationInfo extendedInfo;
480485 llvm::ErrorOr<std::unique_ptr<llvm::MemoryBuffer>> FileBufOrErr =
You can’t perform that action at this time.
0 commit comments