forked from OSchip/llvm-project
parent
059c79264f
commit
25587182f3
|
@ -103,6 +103,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
|
|||
addPass(PM, createCFGSimplificationPass()); // Merge & remove BBs
|
||||
addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
|
||||
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
|
||||
addPass(PM, createPredicateSimplifierPass()); // Canonicalize registers
|
||||
addPass(PM, createCondPropagationPass()); // Propagate conditionals
|
||||
|
||||
addPass(PM, createTailCallEliminationPass()); // Eliminate tail calls
|
||||
|
|
|
@ -248,6 +248,7 @@ int llvm::GenerateBytecode(Module *M, int StripLevel, bool Internalize,
|
|||
|
||||
// The IPO passes may leave cruft around. Clean up after them.
|
||||
addPass(Passes, createInstructionCombiningPass());
|
||||
addPass(Passes, createPredicateSimplifierPass());
|
||||
|
||||
addPass(Passes, createScalarReplAggregatesPass()); // Break up allocas
|
||||
|
||||
|
|
Loading…
Reference in New Issue