Tracking LLVM trunk: removing llvm::createSimplifyLibCallsPass() call

This commit is contained in:
Dmitry Babokin
2013-06-24 10:08:06 +04:00
parent bebab7ab0d
commit fdcec5a219

View File

@@ -505,7 +505,11 @@ Optimize(llvm::Module *module, int optLevel) {
optPM.add(llvm::createCFGSimplificationPass());
optPM.add(llvm::createArgumentPromotionPass());
#if defined(LLVM_3_1) || defined(LLVM_3_2) || defined(LLVM_3_3)
// Starting from 3.4 this functionality was moved to
// InstructionCombiningPass. See r184459 for details.
optPM.add(llvm::createSimplifyLibCallsPass());
#endif
optPM.add(llvm::createInstructionCombiningPass());
optPM.add(llvm::createJumpThreadingPass());
optPM.add(llvm::createCFGSimplificationPass());