move libcalls to the same place llvm-gcc has it.
authorChris Lattner <sabre@nondot.org>
Fri, 2 May 2008 22:05:06 +0000 (22:05 +0000)
committerChris Lattner <sabre@nondot.org>
Fri, 2 May 2008 22:05:06 +0000 (22:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50593 91177308-0d34-0410-b5e6-96231b3b80d8

tools/opt/opt.cpp

index 4b7dbf510667b0386a26ab09c16c15af529ae47e..d1862a08fcf245cd0562254eed662825c7cea2a2 100644 (file)
@@ -262,10 +262,10 @@ void AddStandardCompilePasses(PassManager &PM) {
 
   if (!DisableInline)
     addPass(PM, createFunctionInliningPass());   // Inline small functions
-  addPass(PM, createSimplifyLibCallsPass());     // Library Call Optimizations
   addPass(PM, createArgumentPromotionPass());    // Scalarize uninlined fn args
 
   addPass(PM, createTailDuplicationPass());      // Simplify cfg by copying code
+  addPass(PM, createSimplifyLibCallsPass());     // Library Call Optimizations
   addPass(PM, createInstructionCombiningPass()); // Cleanup for scalarrepl.
   addPass(PM, createJumpThreadingPass());        // Thread jumps.
   addPass(PM, createCFGSimplificationPass());    // Merge & remove BBs