Minor fixes
This commit is contained in:
4
opt.cpp
4
opt.cpp
@@ -741,7 +741,7 @@ Optimize(llvm::Module *module, int optLevel) {
|
||||
optPM.add(llvm::createFunctionInliningPass());
|
||||
optPM.add(llvm::createArgumentPromotionPass());
|
||||
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6
|
||||
optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold));
|
||||
optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold, false));
|
||||
#else
|
||||
optPM.add(llvm::createSROAPass());
|
||||
#endif
|
||||
@@ -799,7 +799,7 @@ Optimize(llvm::Module *module, int optLevel) {
|
||||
// Here clang has an experimental pass SROAPass instead of
|
||||
// ScalarReplAggregatesPass. We should add it in the future.
|
||||
#if ISPC_LLVM_VERSION <= ISPC_LLVM_3_6
|
||||
optPM.add(llvm::createScalarReplAggregatesPass(sr_threshold));
|
||||
optPM.add(llvm::createScalarReplAggregatesPass());
|
||||
#else
|
||||
optPM.add(llvm::createSROAPass());
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user