Skip to content

Commit 5d94489

Browse files
committed
[ownership] Disable SILCodeMotion on ossa SIL.
I missed this during my first go through of the SILOptimizer passes.
1 parent f1327be commit 5d94489

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/SILOptimizer/Transforms/SILCodeMotion.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,6 +1774,10 @@ class SILCodeMotion : public SILFunctionTransform {
17741774
/// The entry point to the transformation.
17751775
void run() override {
17761776
auto *F = getFunction();
1777+
// Skip functions with ownership for now.
1778+
if (F->hasOwnership())
1779+
return;
1780+
17771781
auto *AA = getAnalysis<AliasAnalysis>();
17781782
auto *PO = getAnalysis<PostOrderAnalysis>()->get(F);
17791783
auto *RCIA = getAnalysis<RCIdentityAnalysis>()->get(getFunction());

0 commit comments

Comments
 (0)