Replace old ScalarReplAggregates pass with no longer new SROA pass.

This commit is contained in:
jbrodman
2015-11-02 15:26:28 -05:00
parent 6732d9cb64
commit 00077390ed

View File

@@ -612,9 +612,7 @@ Optimize(llvm::Module *module, int optLevel) {
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.
optPM.add(llvm::createScalarReplAggregatesPass());
optPM.add(llvm::createSROAPass());
optPM.add(llvm::createEarlyCSEPass());
optPM.add(llvm::createLowerExpectIntrinsicPass());