File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
lib/SILOptimizer/Transforms Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -96,10 +96,6 @@ STATISTIC(NumReleasesHoisted, "Number of releases hoisted");
96
96
97
97
llvm::cl::opt<bool > DisableARCCodeMotion (" disable-arc-cm" , llvm::cl::init(false ));
98
98
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
-
103
99
// ===----------------------------------------------------------------------===//
104
100
// Block State
105
101
// ===----------------------------------------------------------------------===//
@@ -1156,11 +1152,6 @@ class ARCCodeMotion : public SILFunctionTransform {
1156
1152
if (!F->shouldOptimize ())
1157
1153
return ;
1158
1154
1159
- // Return if there is critical edge and we are disabling critical edge
1160
- // splitting.
1161
- if (DisableIfWithCriticalEdge && hasCriticalEdges (*F, false ))
1162
- return ;
1163
-
1164
1155
LLVM_DEBUG (llvm::dbgs () << " *** ARCCM on function: " << F->getName ()
1165
1156
<< " ***\n " );
1166
1157
You can’t perform that action at this time.
0 commit comments