Skip to content

Commit 873affd

Browse files
committed
Remove -disable-with-critical-edge flag.
1 parent 61bae5b commit 873affd

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

lib/SILOptimizer/Transforms/ARCCodeMotion.cpp

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -96,10 +96,6 @@ STATISTIC(NumReleasesHoisted, "Number of releases hoisted");
9696

9797
llvm::cl::opt<bool> DisableARCCodeMotion("disable-arc-cm", llvm::cl::init(false));
9898

99-
/// Disable optimization if we have to break critical edges in the function.
100-
llvm::cl::opt<bool>
101-
DisableIfWithCriticalEdge("disable-with-critical-edge", llvm::cl::init(false));
102-
10399
//===----------------------------------------------------------------------===//
104100
// Block State
105101
//===----------------------------------------------------------------------===//
@@ -1156,11 +1152,6 @@ class ARCCodeMotion : public SILFunctionTransform {
11561152
if (!F->shouldOptimize())
11571153
return;
11581154

1159-
// Return if there is critical edge and we are disabling critical edge
1160-
// splitting.
1161-
if (DisableIfWithCriticalEdge && hasCriticalEdges(*F, false))
1162-
return;
1163-
11641155
LLVM_DEBUG(llvm::dbgs() << "*** ARCCM on function: " << F->getName()
11651156
<< " ***\n");
11661157

0 commit comments

Comments
 (0)