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

Owen Anderson resistor at mac.com
Thu Jan 13 16:36:41 PST 2011


Author: resistor
Date: Thu Jan 13 18:36:40 2011
New Revision: 123416

URL: http://llvm.org/viewvc/llvm-project?rev=123416&view=rev
Log:
Don't bother conditionalizing the use of SROA in -O1 mode.  We're already running it unconditionally
later in the pipeline.

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=123416&r1=123415&r2=123416&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/StandardPasses.h (original)
+++ llvm/trunk/include/llvm/Support/StandardPasses.h Thu Jan 13 18:36:40 2011
@@ -82,10 +82,7 @@
     if (OptimizationLevel > 0) {
       createStandardAliasAnalysisPasses(PM);
       PM->add(createCFGSimplificationPass());
-      if (OptimizationLevel == 1)
-        PM->add(createPromoteMemoryToRegisterPass());
-      else
-        PM->add(createScalarReplAggregatesPass());
+      PM->add(createScalarReplAggregatesPass());
       PM->add(createInstructionCombiningPass());
     }
   }





More information about the llvm-commits mailing list