remove an extraneous mem2reg pass early in the pipe. Since
authorChris Lattner <sabre@nondot.org>
Fri, 18 Sep 2009 22:03:29 +0000 (22:03 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 18 Sep 2009 22:03:29 +0000 (22:03 +0000)
this is run after the 'standard function passes', SRoA was
recently run.  This saves a domfrontier construction. Thanks
to Eli for noticing this.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@82291 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Support/StandardPasses.h

index e7eb9138ea3ce6e3e8ed3cae65f638ca040d5f48..8c4f90bf33df08b8bd32fc464f3838a6f22b2be2 100644 (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