File tree Expand file tree Collapse file tree 1 file changed +0
-8
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +0
-8
lines changed Original file line number Diff line number Diff line change @@ -318,8 +318,6 @@ bool SimplifyCFG::threadEdge(const ThreadInfo &ti) {
318
318
return false ;
319
319
320
320
Cloner.cloneBranchTarget (SrcTerm);
321
- JumpThreadingCost[Cloner.getNewBB ()] = JumpThreadingCost[SrcTerm->getDestBB ()];
322
-
323
321
324
322
// We have copied the threaded block into the edge.
325
323
auto *clonedSrc = Cloner.getNewBB ();
@@ -1133,10 +1131,6 @@ bool SimplifyCFG::tryJumpThreading(BranchInst *BI) {
1133
1131
Cloner.cloneBranchTarget (BI);
1134
1132
Cloner.updateSSAAfterCloning ();
1135
1133
1136
- // Also account the costs to the cloned DestBB, so the jump threading cannot
1137
- // loop by cloning the cloned block again.
1138
- JumpThreadingCost[Cloner.getNewBB ()] += copyCosts;
1139
-
1140
1134
// Once all the instructions are copied, we can nuke BI itself. We also add
1141
1135
// the threaded and edge block to the worklist now that they (likely) can be
1142
1136
// simplified.
@@ -2879,8 +2873,6 @@ bool SimplifyCFG::tailDuplicateObjCMethodCallSuccessorBlocks() {
2879
2873
Cloner.cloneBranchTarget (Branch);
2880
2874
Cloner.updateSSAAfterCloning ();
2881
2875
2882
- JumpThreadingCost[Cloner.getNewBB ()] = JumpThreadingCost[DestBB];
2883
-
2884
2876
Changed = true ;
2885
2877
// Simplify the cloned block and continue tail duplicating through its new
2886
2878
// successors edges.
You can’t perform that action at this time.
0 commit comments