The preheader insertion pass only depends on the CFG. Mark it as such, which
authorChris Lattner <sabre@nondot.org>
Sun, 12 Oct 2003 19:33:10 +0000 (19:33 +0000)
committerChris Lattner <sabre@nondot.org>
Sun, 12 Oct 2003 19:33:10 +0000 (19:33 +0000)
allows GCCAS to only run it once.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9056 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Transforms/Utils/LoopSimplify.cpp

index 3c77b01a86a197e7b278f7541f5278b4b4372e0d..fb57a2318ab789967d53f166cd3b1c165eda2684 100644 (file)
@@ -56,7 +56,8 @@ namespace {
     void InsertPreheaderForLoop(Loop *L);
   };
 
-  RegisterOpt<Preheaders> X("preheaders", "Natural loop pre-header insertion");
+  RegisterOpt<Preheaders> X("preheaders", "Natural loop pre-header insertion",
+                            true);
 }
 
 // Publically exposed interface to pass...