summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-01 19:45:11 +0000
committerChris Lattner <sabre@nondot.org>2002-04-01 19:45:11 +0000
commit69cd2b1adeac3ecec6435a4e1735f8a2daf25016 (patch)
treecaae61e82158106527c77224d7c3d94d4c8647cb /tools
parentbb063f38fa8dcfd9b639411fe02b1024c0e4e91f (diff)
downloadllvm-69cd2b1adeac3ecec6435a4e1735f8a2daf25016.tar.gz
llvm-69cd2b1adeac3ecec6435a4e1735f8a2daf25016.tar.bz2
llvm-69cd2b1adeac3ecec6435a4e1735f8a2daf25016.tar.xz
Move the PromoteMemoryToRegister pass to be run _after_ the raise pointer
references pass, so it is given the chance to do some good! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 235dadf4fa..3f52e004f6 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -70,11 +70,11 @@ int main(int argc, char **argv) {
PassManager Passes;
Passes.add(createDeadInstEliminationPass()); // Remove Dead code/vars
Passes.add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
- Passes.add(createPromoteMemoryToRegister()); // memory->register promotion
Passes.add(createCleanupGCCOutputPass()); // Fix gccisms
Passes.add(createIndVarSimplifyPass()); // Simplify indvars
if (!StopAtLevelRaise) {
Passes.add(createRaisePointerReferencesPass()); // Eliminate casts
+ Passes.add(createPromoteMemoryToRegister()); // Promote alloca's to regs
Passes.add(createConstantMergePass()); // Merge dup global consts
Passes.add(createInstructionCombiningPass()); // Combine silly seq's
Passes.add(createDeadCodeEliminationPass()); // Remove Dead code/vars