Minor fixes

This commit is contained in:
Dmitry Babokin
2015-11-02 23:20:15 +03:00
parent d8fd909d4f
commit fb30a56cc3

View File

@@ -741,7 +741,7 @@ Optimize(llvm::Module *module, int optLevel) {
optPM.add(llvm::createFunctionInliningPass()); optPM.add(llvm::createFunctionInliningPass());
optPM.add(llvm::createArgumentPromotionPass()); optPM.add(llvm::createArgumentPromotionPass());
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6 #if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6
optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold)); optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold, false));
#else #else
optPM.add(llvm::createSROAPass()); optPM.add(llvm::createSROAPass());
#endif #endif
@@ -799,7 +799,7 @@ Optimize(llvm::Module *module, int optLevel) {
// Here clang has an experimental pass SROAPass instead of // Here clang has an experimental pass SROAPass instead of
// ScalarReplAggregatesPass. We should add it in the future. // ScalarReplAggregatesPass. We should add it in the future.
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6 #if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6
optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold)); optPM.add(llvm::createScalarReplAggregatesPass());
#else #else
optPM.add(llvm::createSROAPass()); optPM.add(llvm::createSROAPass());
#endif #endif