1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-20 03:23:01 +02:00

As the comments indicate, this is a temporary, repulsive, hack

llvm-svn: 9982
This commit is contained in:
Chris Lattner 2003-11-13 19:26:54 +00:00
parent fe4e3f7108
commit b6b3b55e95

View File

@ -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