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.
1 parent bf68e3f commit a303bb4Copy full SHA for a303bb4
lib/SILOptimizer/Transforms/SimplifyCFG.cpp
@@ -2954,10 +2954,8 @@ static bool shouldTailDuplicate(SILBasicBlock &Block) {
2954
bool SimplifyCFG::tailDuplicateObjCMethodCallSuccessorBlocks() {
2955
SmallVector<SILBasicBlock *, 16> ObjCBlocks;
2956
2957
- // TODO: OSSA phi support. Even if all block arguments are trivial,
2958
- // jump-threading may require creation of guaranteed phis, which may require
2959
- // creation of nested borrow scopes.
2960
- if (!EnableOSSARewriteTerminator && Fn.hasOwnership()) {
+ if (Fn.hasOwnership()) {
+ // TODO: This needs additional support in ossa.
2961
return false;
2962
}
2963
// Collect blocks to tail duplicate.
0 commit comments