Skip to content

Commit cefc925

Browse files
authored
Temporarily disable SILCombine keypath optimization in OSSA (swiftlang#39364)
KeyPathProjector is not fully ported. Disable until OSSA support in KeyPathProjector is implemented.
1 parent 6cb4568 commit cefc925

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/SILCombiner/SILCombinerApplyVisitors.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,10 @@ bool SILCombiner::tryOptimizeKeypath(ApplyInst *AI) {
512512
/// %addr = struct_element_addr/ref_element_addr %root_object
513513
/// // use %inout_addr
514514
bool SILCombiner::tryOptimizeInoutKeypath(BeginApplyInst *AI) {
515+
// Disable in OSSA because KeyPathProjector is not fully ported
516+
if (AI->getFunction()->hasOwnership())
517+
return false;
518+
515519
SILFunction *callee = AI->getReferencedFunctionOrNull();
516520
if (!callee)
517521
return false;

0 commit comments

Comments
 (0)