forked from OSchip/llvm-project
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:
parent
b069ec63a4
commit
1457d067fa
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue