Run the CFG simplification pass even when optimization is disabled.
This fixes an issue with undefined SVML symbols with code that called transcendental functions in the stdandard library, even when the SVML math library hadn't been selected.
This commit is contained in:
1
opt.cpp
1
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 {
|
||||
|
||||
Reference in New Issue
Block a user