From 387d76a98395b9f508701028d8c4486a14c896b2 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 22 Sep 2002 18:50:22 +0000 Subject: * 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. llvm-svn: 3879 --- llvm/tools/gccas/gccas.cpp | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'llvm') diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index f66432899ac..8d8950e29b5 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/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 -StopAtLevelRaise("stopraise", cl::desc("Stop optimization before level raise"), - cl::Hidden); - static cl::opt 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 -- cgit v1.2.3