aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Transforms/Utils
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-10-12 19:33:10 +0000
committerChris Lattner <sabre@nondot.org>2003-10-12 19:33:10 +0000
commitbebd86d58eea8839691785a08917040751334083 (patch)
treee3c1c938a7c506d70be78e30efdb1f9b1c9745d3 /lib/Transforms/Utils
parent5b62cdcf4a4ba4c3c254b5e70174566dd26a8028 (diff)
downloadexternal_llvm-bebd86d58eea8839691785a08917040751334083.zip
external_llvm-bebd86d58eea8839691785a08917040751334083.tar.gz
external_llvm-bebd86d58eea8839691785a08917040751334083.tar.bz2
The preheader insertion pass only depends on the CFG. Mark it as such, which
allows GCCAS to only run it once. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils')
-rw-r--r--lib/Transforms/Utils/LoopSimplify.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/Transforms/Utils/LoopSimplify.cpp b/lib/Transforms/Utils/LoopSimplify.cpp
index 3c77b01..fb57a23 100644
--- a/lib/Transforms/Utils/LoopSimplify.cpp
+++ b/lib/Transforms/Utils/LoopSimplify.cpp
@@ -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...