File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -2840,12 +2840,11 @@ static bool shouldTailDuplicate(SILBasicBlock &Block) {
2840
2840
bool SimplifyCFG::tailDuplicateObjCMethodCallSuccessorBlocks () {
2841
2841
SmallVector<SILBasicBlock *, 16 > ObjCBlocks;
2842
2842
2843
- // TODO: OSSA phi support. Even if all block arguments are trivial,
2844
- // jump-threading may require creation of guaranteed phis, which may require
2845
- // creation of nested borrow scopes.
2846
- if (!EnableOSSARewriteTerminator && Fn.hasOwnership ()) {
2843
+ // TODO: Evaluate if tail duplication is needed for ossa arc optimizations
2844
+ if (Fn.hasOwnership ()) {
2847
2845
return false ;
2848
2846
}
2847
+
2849
2848
// Collect blocks to tail duplicate.
2850
2849
for (auto &BB : Fn) {
2851
2850
SILBasicBlock *DestBB;
You can’t perform that action at this time.
0 commit comments