[LVer] Fix FIXME: hide addPHINodes, NFC
[oota-llvm.git] / lib / Transforms / Scalar / LoopDistribute.cpp
index 82e2f48c4bf20e4f25d37cef1eb88a8abea4e2e9..a7769644203cac5ae297c263cf46344ba7b9c3dc 100644 (file)
@@ -776,8 +776,7 @@ private:
       DEBUG(dbgs() << "\nPointers:\n");
       DEBUG(LAI.getRuntimePointerChecking()->printChecks(dbgs(), Checks));
       LoopVersioning LVer(std::move(Checks), LAI, L, LI, DT);
-      LVer.versionLoop();
-      LVer.addPHINodes(DefsUsedOutside);
+      LVer.versionLoop(DefsUsedOutside);
     }
 
     // Create identical copies of the original loop for each partition and hook