remove an extraneous mem2reg pass early in the pipe. Since

this is run after the 'standard function passes', SRoA was
recently run.  This saves a domfrontier construction. Thanks
to Eli for noticing this.

llvm-svn: 82291
This commit is contained in:
Chris Lattner 2009-09-18 22:03:29 +00:00
parent b069ec63a4
commit 1457d067fa
1 changed files with 0 additions and 2 deletions

View File

@ -99,8 +99,6 @@ namespace llvm {
if (UnitAtATime)
PM->add(createRaiseAllocationsPass()); // call %malloc -> malloc inst
PM->add(createCFGSimplificationPass()); // Clean up disgusting code
// Kill useless allocas
PM->add(createPromoteMemoryToRegisterPass());
if (UnitAtATime) {
PM->add(createGlobalOptimizerPass()); // Optimize out global vars
PM->add(createGlobalDCEPass()); // Remove unused fns and globs