diff options
author | Chris Lattner <sabre@nondot.org> | 2003-11-13 19:26:54 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-11-13 19:26:54 +0000 |
commit | 093cc6dc925e06181eee5a12d012b569cc5cbc2f (patch) | |
tree | 91a05022f1507a054035e4a8220fc1673f73aae4 /llvm/tools/gccas/gccas.cpp | |
parent | d76fe4ea7d88628d43c1d4d7d55cf5d6776247b4 (diff) | |
download | bcm5719-llvm-093cc6dc925e06181eee5a12d012b569cc5cbc2f.tar.gz bcm5719-llvm-093cc6dc925e06181eee5a12d012b569cc5cbc2f.zip |
As the comments indicate, this is a temporary, repulsive, hack
llvm-svn: 9982
Diffstat (limited to 'llvm/tools/gccas/gccas.cpp')
-rw-r--r-- | llvm/tools/gccas/gccas.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/tools/gccas/gccas.cpp b/llvm/tools/gccas/gccas.cpp index c7a2204e32d..0ed58b97db5 100644 --- a/llvm/tools/gccas/gccas.cpp +++ b/llvm/tools/gccas/gccas.cpp @@ -70,6 +70,12 @@ void AddConfiguredTransformationPasses(PassManager &PM) { addPass(PM, createFunctionInliningPass()); // Inline small functions addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise + + // HACK HACK HACK. This pass should be extended to support calls like 'call + // (const expr cast (free))(Ty *). Until it does so, we have to run it after + // instruction combining. This should be removed after PLDI! + addPass(PM, createRaiseAllocationsPass()); // call %malloc -> malloc inst + addPass(PM, createRaisePointerReferencesPass());// Recover type information addPass(PM, createTailDuplicationPass()); // Simplify cfg by copying code addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs |