summaryrefslogtreecommitdiff
path: root/tools/gccas
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-11-13 19:26:54 +0000
committerChris Lattner <sabre@nondot.org>2003-11-13 19:26:54 +0000
commita8d76d4bde8cd231712367c474a4cd778465ea18 (patch)
tree2a134c04440f4c2c5887197a6d578b2eba9331c5 /tools/gccas
parent917e8042535f67697f90310126c85804f7552fde (diff)
downloadllvm-a8d76d4bde8cd231712367c474a4cd778465ea18.tar.gz
llvm-a8d76d4bde8cd231712367c474a4cd778465ea18.tar.bz2
llvm-a8d76d4bde8cd231712367c474a4cd778465ea18.tar.xz
As the comments indicate, this is a temporary, repulsive, hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@9982 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas')
-rw-r--r--tools/gccas/gccas.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index c7a2204e32..0ed58b97db 100644
--- a/tools/gccas/gccas.cpp
+++ b/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