[PM] Cleanup a dead option to critical edge splitting that I noticed
[oota-llvm.git] / lib / Transforms / Scalar / LoopUnswitch.cpp
index e809a5ccc84ae30b8f82f50ea178585bd56ab1ef..276af27f2fbba412586fc15e3be6b0308e9a3777 100644 (file)
@@ -706,9 +706,7 @@ void LoopUnswitch::EmitPreheaderBranchOnCondition(Value *LIC, Constant *Val,
 
   // If either edge is critical, split it. This helps preserve LoopSimplify
   // form for enclosing loops.
-  auto Options = CriticalEdgeSplittingOptions(DT, LI)
-                     .setPreserveLCSSA()
-                     .setSplitLandingPads();
+  auto Options = CriticalEdgeSplittingOptions(DT, LI).setPreserveLCSSA();
   SplitCriticalEdge(BI, 0, Options);
   SplitCriticalEdge(BI, 1, Options);
 }