From: Chris Lattner Date: Fri, 2 May 2008 22:05:06 +0000 (+0000) Subject: move libcalls to the same place llvm-gcc has it. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=866b9e1520279303bc24b2fb4f709dc62ad7c96d;p=oota-llvm.git move libcalls to the same place llvm-gcc has it. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@50593 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/opt/opt.cpp b/tools/opt/opt.cpp index 4b7dbf51066..d1862a08fcf 100644 --- a/tools/opt/opt.cpp +++ b/tools/opt/opt.cpp @@ -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