[PGO] Do not emit runtime hook user function for Linux
[oota-llvm.git] / lib / Transforms / IPO / PassManagerBuilder.cpp
index 6b113ff9b7f3a4c0319a0abbc16cbaea0297641a..f7b8ef382231a050e5f1922e8a369ba3a82aead2 100644 (file)
@@ -260,6 +260,7 @@ void PassManagerBuilder::populateModulePassManager(
   MPM.add(createLoopRotatePass(SizeLevel == 2 ? 0 : -1));
   MPM.add(createLICMPass());                  // Hoist loop invariants
   MPM.add(createLoopUnswitchPass(SizeLevel || OptLevel < 3));
+  MPM.add(createCFGSimplificationPass());
   MPM.add(createInstructionCombiningPass());
   MPM.add(createIndVarSimplifyPass());        // Canonicalize indvars
   MPM.add(createLoopIdiomPass());             // Recognize idioms like memset.