split SROA into two passes: one that uses DomFrontiers (-scalarrepl)

and one that uses SSAUpdater (-scalarrepl-ssa)


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@123436 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner
2011-01-14 08:13:00 +00:00
parent 25052d8d64
commit b352d6eb49
4 changed files with 61 additions and 29 deletions

View File

@@ -73,7 +73,8 @@ FunctionPass *createAggressiveDCEPass();
// ScalarReplAggregates - Break up alloca's of aggregates into multiple allocas
// if possible.
//
FunctionPass *createScalarReplAggregatesPass(signed Threshold = -1);
FunctionPass *createScalarReplAggregatesPass(signed Threshold = -1,
bool UseDomFrontier = true);
//===----------------------------------------------------------------------===//
//