Merge pull request #1097 from Shishpan/trunkFix

added some new names for new API
This commit is contained in:
Dmitry Babokin
2015-09-14 10:23:28 +03:00

View File

@@ -604,8 +604,13 @@ Optimize(llvm::Module *module, int optLevel) {
// so we explicitly enable them here.
// Need to keep sync with future LLVM change
// An alternative is to call populateFunctionPassManager()
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_7
optPM.add(llvm::createTypeBasedAliasAnalysisPass(), 190);
optPM.add(llvm::createBasicAliasAnalysisPass());
#else
optPM.add(llvm::createTypeBasedAAWrapperPass(), 190);
optPM.add(llvm::createBasicAAWrapperPass());
#endif
optPM.add(llvm::createCFGSimplificationPass());
// Here clang has an experimental pass SROAPass instead of
// ScalarReplAggregatesPass. We should add it in the future.