From b718ae3a52457ed07a40544a10f9d829a1748c68 Mon Sep 17 00:00:00 2001 From: Andrey Shishpanov Date: Thu, 10 Sep 2015 15:33:17 +0300 Subject: [PATCH] added some new names for new API --- opt.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/opt.cpp b/opt.cpp index 7da0b9ee..3b76ad0e 100644 --- a/opt.cpp +++ b/opt.cpp @@ -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.