[llvm-commits] CVS: llvm/tools/gccas/gccas.cpp
Chris Lattner
lattner at cs.uiuc.edu
Thu Nov 13 13:28:01 PST 2003
Changes in directory llvm/tools/gccas:
gccas.cpp updated: 1.84 -> 1.85
---
Log message:
As the comments indicate, this is a temporary, repulsive, hack
---
Diffs of the changes: (+6 -0)
Index: llvm/tools/gccas/gccas.cpp
diff -u llvm/tools/gccas/gccas.cpp:1.84 llvm/tools/gccas/gccas.cpp:1.85
--- llvm/tools/gccas/gccas.cpp:1.84 Tue Nov 11 16:41:34 2003
+++ llvm/tools/gccas/gccas.cpp Thu Nov 13 13:26:54 2003
@@ -70,6 +70,12 @@
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
More information about the llvm-commits
mailing list