From 00077390edab15790ea05ce8abe810655d557c86 Mon Sep 17 00:00:00 2001 From: jbrodman Date: Mon, 2 Nov 2015 15:26:28 -0500 Subject: [PATCH] Replace old ScalarReplAggregates pass with no longer new SROA pass. --- opt.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/opt.cpp b/opt.cpp index 3b76ad0e..b2ddab06 100644 --- a/opt.cpp +++ b/opt.cpp @@ -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());