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::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
|
||||||
|
|||||||
Reference in New Issue
Block a user