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 @@ -2845,12 +2845,11 @@ static bool shouldTailDuplicate(SILBasicBlock &Block) {
2845
2845
bool SimplifyCFG::tailDuplicateObjCMethodCallSuccessorBlocks () {
2846
2846
SmallVector<SILBasicBlock *, 16 > ObjCBlocks;
2847
2847
2848
- // TODO: OSSA phi support. Even if all block arguments are trivial,
2849
- // jump-threading may require creation of guaranteed phis, which may require
2850
- // creation of nested borrow scopes.
2851
- if (!EnableOSSARewriteTerminator && Fn.hasOwnership ()) {
2848
+ // TODO: Evaluate if tail duplication is needed for ossa arc optimizations
2849
+ if (Fn.hasOwnership ()) {
2852
2850
return false ;
2853
2851
}
2852
+
2854
2853
// Collect blocks to tail duplicate.
2855
2854
for (auto &BB : Fn) {
2856
2855
SILBasicBlock *DestBB;
You can’t perform that action at this time.
0 commit comments