Checkin new loop-preheader insertion pass.
authorChris Lattner <sabre@nondot.org>
Thu, 26 Sep 2002 16:17:33 +0000 (16:17 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 26 Sep 2002 16:17:33 +0000 (16:17 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3943 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Transforms/Scalar.h

index 79f10298a5b47e05ce11d4847ba9c1a18b49eaec..3161d68b0a0bcd8f041d45546150b214e3e1bf69 100644 (file)
@@ -188,6 +188,19 @@ Pass *createCFGSimplificationPass();
 Pass *createBreakCriticalEdgesPass();
 extern const PassInfo *BreakCriticalEdgesID;
 
+
+//===----------------------------------------------------------------------===//
+//
+// LoopPreheaders pass - Insert Pre-header blocks into the CFG for every
+// function in the module.  This pass updates dominator information, loop
+// information, and does not add critical edges to the CFG.
+//
+//   AU.addRequiredID(LoopPreheadersID);
+//
+Pass *createLoopPreheaderInsertionPass();
+extern const PassInfo *LoopPreheadersID;
+
+
 //===----------------------------------------------------------------------===//
 // These two passes convert malloc and free instructions to and from %malloc &
 // %free function calls.