Merge pull request #1115 from jbrodman/master

Replace old ScalarReplAggregates pass with no longer new SROA pass.
This commit is contained in:
jbrodman
2015-11-02 14:38:25 -05:00

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());