Skip to content

Commit 8a45b5f

Browse files
committed
OSSA: Support SimplifyCFG tryJumpThreading for testing.
This will be gated by a testing flag while tests are staged in.
1 parent 9d5b0d5 commit 8a45b5f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

lib/SILOptimizer/Transforms/SimplifyCFG.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1029,12 +1029,6 @@ static bool hasInjectedEnumAtEndOfBlock(SILBasicBlock *block, SILValue enumAddr)
10291029
/// tryJumpThreading - Check to see if it looks profitable to duplicate the
10301030
/// destination of an unconditional jump into the bottom of this block.
10311031
bool SimplifyCFG::tryJumpThreading(BranchInst *BI) {
1032-
// TODO: OSSA phi support. Even if all block arguments are trivial,
1033-
// jump-threading may require creation of guaranteed phis, which may require
1034-
// creation of nested borrow scopes.
1035-
if (Fn.hasOwnership())
1036-
return false;
1037-
10381032
auto *DestBB = BI->getDestBB();
10391033
auto *SrcBB = BI->getParent();
10401034
TermInst *destTerminator = DestBB->getTerminator();

0 commit comments

Comments
 (0)