diff --git a/opt.cpp b/opt.cpp index 337031bc..fd4f1709 100644 --- a/opt.cpp +++ b/opt.cpp @@ -204,6 +204,7 @@ Optimize(llvm::Module *module, int optLevel) { optPM.add(CreateIsCompileTimeConstantPass(true)); optPM.add(llvm::createFunctionInliningPass()); optPM.add(CreateMakeInternalFuncsStaticPass()); + optPM.add(llvm::createCFGSimplificationPass()); optPM.add(llvm::createGlobalDCEPass()); } else {