[llvm-commits] [llvm] r82291 - /llvm/trunk/include/llvm/Support/StandardPasses.h

Chris Lattner sabre at nondot.org
Fri Sep 18 15:03:29 PDT 2009


Author: lattner
Date: Fri Sep 18 17:03:29 2009
New Revision: 82291

URL: http://llvm.org/viewvc/llvm-project?rev=82291&view=rev
Log:
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.

Modified:
    llvm/trunk/include/llvm/Support/StandardPasses.h

Modified: llvm/trunk/include/llvm/Support/StandardPasses.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/StandardPasses.h?rev=82291&r1=82290&r2=82291&view=diff

==============================================================================
--- llvm/trunk/include/llvm/Support/StandardPasses.h (original)
+++ llvm/trunk/include/llvm/Support/StandardPasses.h Fri Sep 18 17:03:29 2009
@@ -99,8 +99,6 @@
     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





More information about the llvm-commits mailing list