aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-09-22 18:50:22 +0000
committerChris Lattner <sabre@nondot.org>2002-09-22 18:50:22 +0000
commitcc377df7f5286801e5d294d1f3971095560e7bc1 (patch)
tree05cd2fe7b0b46e48cba5ddbcad5f86f7f52f0027 /tools/gccas/gccas.cpp
parentbdccb0097061e05b506592c25b3b5e9e0692c950 (diff)
downloadexternal_llvm-cc377df7f5286801e5d294d1f3971095560e7bc1.zip
external_llvm-cc377df7f5286801e5d294d1f3971095560e7bc1.tar.gz
external_llvm-cc377df7f5286801e5d294d1f3971095560e7bc1.tar.bz2
* Remove the -stopraise option, which is no longer needed now that we have
the -debug-pass=Arguments option * Run instcombining BEFORE mem2reg so that getelementptr X, long 0's are cleaned up. This is also important because scalar replacement of aggr. will want instcombine to run before it goes as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3879 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-rw-r--r--tools/gccas/gccas.cpp11
1 files changed, 1 insertions, 10 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index f664328..8d8950e 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -38,10 +38,6 @@ RunNPasses("stopAfterNPasses",
cl::desc("Only run the first N passes of gccas"), cl::Hidden,
cl::value_desc("# passes"));
-static cl::opt<bool>
-StopAtLevelRaise("stopraise", cl::desc("Stop optimization before level raise"),
- cl::Hidden);
-
static cl::opt<bool>
Verify("verify", cl::desc("Verify each pass result"));
@@ -76,16 +72,11 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createDeadInstEliminationPass()); // Remove Dead code/vars
addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
-
- // Level raise is eternally buggy/in need of enhancements. Allow
- // transformation to stop right before it runs.
- if (StopAtLevelRaise) return;
-
addPass(PM, createRaisePointerReferencesPass(TD));// Recover type information
+ addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
// Disabling until this is fixed -- Vikram, 7/7/02.
// addPass(PM, createReassociatePass()); // Reassociate expressions
- addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createCorrelatedExpressionEliminationPass());
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs