summaryrefslogtreecommitdiff
path: root/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-01-22 00:13:51 +0000
committerChris Lattner <sabre@nondot.org>2002-01-22 00:13:51 +0000
commit5048c3b853b8be541479e300705a88375569c8b1 (patch)
tree06ad0297d913d6ca52869480e2ee7cf69bc57b97 /tools/gccas
parent8445372636eaacad7dc34f12769a290675e351b9 (diff)
downloadllvm-5048c3b853b8be541479e300705a88375569c8b1.tar.gz
llvm-5048c3b853b8be541479e300705a88375569c8b1.tar.bz2
llvm-5048c3b853b8be541479e300705a88375569c8b1.tar.xz
Pull RaiseAllocations stuff out of the CleanGCC pass into it's own pass in
the ChangeAllocations.h header file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1522 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r--tools/gccas/gccas.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 24a5e87b1b..211b4cf459 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -12,6 +12,7 @@
#include "llvm/Transforms/CleanupGCCOutput.h"
#include "llvm/Transforms/LevelChange.h"
#include "llvm/Transforms/ConstantMerge.h"
+#include "llvm/Transforms/LowerAllocations.h"
#include "llvm/Transforms/Scalar/DCE.h"
#include "llvm/Transforms/Scalar/IndVarSimplify.h"
#include "llvm/Transforms/Scalar/InstructionCombining.h"
@@ -65,6 +66,7 @@ int main(int argc, char **argv) {
//
PassManager Passes;
Passes.add(new DeadCodeElimination()); // Remove Dead code/vars
+ Passes.add(new RaiseAllocations()); // call %malloc -> malloc inst
Passes.add(new CleanupGCCOutput()); // Fix gccisms
Passes.add(new InductionVariableSimplify()); // Simplify indvars
Passes.add(new RaisePointerReferences()); // Eliminate casts