aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-08-29 07:05:51 +0000
committerChris Lattner <sabre@nondot.org>2010-08-29 07:05:51 +0000
commit8bfc4299c2c106aa8ef0053b27c9f5a611b5a2a8 (patch)
treee97478b32097ed5c4d0a3ee3f14c33ba82e48fdd /include/llvm
parente418ac832c1a2813736c44f6ec5c646b4c89c339 (diff)
downloadexternal_llvm-8bfc4299c2c106aa8ef0053b27c9f5a611b5a2a8.zip
external_llvm-8bfc4299c2c106aa8ef0053b27c9f5a611b5a2a8.tar.gz
external_llvm-8bfc4299c2c106aa8ef0053b27c9f5a611b5a2a8.tar.bz2
Stop explicitly scheduling domfrontier before the loop passes,
since none of them use it. With this, we now only run domfrontier (an N^2 analysis) 3 times at clang -O3: once for "early" per-function cleanup, once at the start of the per-function pipeline to support SRoA, and once late because the EHPrepare class uses it. EHPrepare needs to stop using it, this is silly and wasteful. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112420 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r--include/llvm/Support/StandardPasses.h3
1 files changed, 0 insertions, 3 deletions
diff --git a/include/llvm/Support/StandardPasses.h b/include/llvm/Support/StandardPasses.h
index 3b2fbf0..9df8a65 100644
--- a/include/llvm/Support/StandardPasses.h
+++ b/include/llvm/Support/StandardPasses.h
@@ -117,7 +117,6 @@ namespace llvm {
PM->add(createArgumentPromotionPass()); // Scalarize uninlined fn args
// Start of function pass.
-
PM->add(createScalarReplAggregatesPass()); // Break up aggregate allocas
if (SimplifyLibCalls)
PM->add(createSimplifyLibCallsPass()); // Library Call Optimizations
@@ -129,8 +128,6 @@ namespace llvm {
PM->add(createTailCallEliminationPass()); // Eliminate tail calls
PM->add(createCFGSimplificationPass()); // Merge & remove BBs
PM->add(createReassociatePass()); // Reassociate expressions
- // Explicitly schedule this to ensure that it runs before any loop pass.
- PM->add(new DominanceFrontier()); // Calculate Dominance Frontiers
PM->add(createLoopRotatePass()); // Rotate Loop
PM->add(createLICMPass()); // Hoist loop invariants
PM->add(createLoopUnswitchPass(OptimizeSize || OptimizationLevel < 3));