We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c7f70fc + 5d94489 commit fa45f94Copy full SHA for fa45f94
lib/SILOptimizer/Transforms/SILCodeMotion.cpp
@@ -1774,6 +1774,10 @@ class SILCodeMotion : public SILFunctionTransform {
1774
/// The entry point to the transformation.
1775
void run() override {
1776
auto *F = getFunction();
1777
+ // Skip functions with ownership for now.
1778
+ if (F->hasOwnership())
1779
+ return;
1780
+
1781
auto *AA = getAnalysis<AliasAnalysis>();
1782
auto *PO = getAnalysis<PostOrderAnalysis>()->get(F);
1783
auto *RCIA = getAnalysis<RCIdentityAnalysis>()->get(getFunction());
0 commit comments