Skip to content

Commit 84d5a82

Browse files
committed
CopyPropagation: Temporarily disable borrow scope rewriting.
For the purpose of staging in functionality, this should be initially disabled. I'll reenable it on main with more complete unit tests, but it will be useful to selectively apply/revert just this commit.
1 parent 0ee3b22 commit 84d5a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/SILOptimizer/Utils/CanonicalOSSALifetime.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ SILValue CanonicalizeOSSALifetime::getCanonicalCopiedDef(SILValue v) {
9292
//===----------------------------------------------------------------------===//
9393

9494
llvm::cl::opt<bool>
95-
EnableRewriteBorrows("canonical-ossa-rewrite-borrows", llvm::cl::init(true),
95+
EnableRewriteBorrows("canonical-ossa-rewrite-borrows", llvm::cl::init(false),
9696
llvm::cl::desc("Enable rewriting borrow scopes"));
9797

9898
bool CanonicalizeOSSALifetime::computeBorrowLiveness() {

0 commit comments

Comments
 (0)