aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-30 19:24:06 +0000
committerChris Lattner <sabre@nondot.org>2003-05-30 19:24:06 +0000
commit42ed21b1518e24ecb33db72baf3ff1702143971e (patch)
tree7c1513f55de99a1cc5f99801b30224cf38b27f36 /tools
parent4dc3535e7a4e76dac68b7ea335526627297db149 (diff)
downloadexternal_llvm-42ed21b1518e24ecb33db72baf3ff1702143971e.zip
external_llvm-42ed21b1518e24ecb33db72baf3ff1702143971e.tar.gz
external_llvm-42ed21b1518e24ecb33db72baf3ff1702143971e.tar.bz2
Add SRoA pass to gccas
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6442 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r--tools/gccas/gccas.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gccas/gccas.cpp b/tools/gccas/gccas.cpp
index 9d9ab6a..ae42b71 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -73,6 +73,7 @@ void AddConfiguredTransformationPasses(PassManager &PM) {
addPass(PM, createInstructionCombiningPass()); // Cleanup code for raise
addPass(PM, createRaisePointerReferencesPass());// Recover type information
addPass(PM, createInstructionCombiningPass()); // Combine silly seq's
+ addPass(PM, createScalarReplAggregatesPass()); // Break up aggregate allocas
addPass(PM, createPromoteMemoryToRegister()); // Promote alloca's to regs
addPass(PM, createIndVarSimplifyPass()); // Simplify indvars
addPass(PM, createReassociatePass()); // Reassociate expressions