[PM] Lift the analyses into the interface for
[oota-llvm.git] / lib / Transforms / Scalar / LoopUnswitch.cpp
index cf80244bb77fb3b49f1fc4f9d896427d2c9be7f0..30d6d510acefec509ebcd5e269a8cee5c507cbd4 100644 (file)
@@ -775,7 +775,8 @@ void LoopUnswitch::SplitExitEdges(Loop *L,
     } else {
       SmallVector<BasicBlock*, 2> NewBBs;
       SplitLandingPadPredecessors(ExitBlock, Preds, ".us-lcssa", ".us-lcssa",
-                                  this, NewBBs);
+                                  NewBBs, /*AliasAnalysis*/ nullptr, DT, LI,
+                                  /*PreserveLCSSA*/ true);
     }
   }
 }