aboutsummaryrefslogtreecommitdiffstats
path: root/tools/gccas/gccas.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-05-08 22:18:20 +0000
committerChris Lattner <sabre@nondot.org>2002-05-08 22:18:20 +0000
commit94fbab002217fb4ac711190437d728a38d0d02c8 (patch)
tree82edb4db2006cedbec72117d09ca3fb04994df46 /tools/gccas/gccas.cpp
parent557a143b8276ef8e07f2e873d7a2988106474e9a (diff)
downloadexternal_llvm-94fbab002217fb4ac711190437d728a38d0d02c8.zip
external_llvm-94fbab002217fb4ac711190437d728a38d0d02c8.tar.gz
external_llvm-94fbab002217fb4ac711190437d728a38d0d02c8.tar.bz2
Run expression reassociation as part of gccas
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2556 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gccas/gccas.cpp')
-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 59c1271..cd4ccd2 100644
--- a/tools/gccas/gccas.cpp
+++ b/tools/gccas/gccas.cpp
@@ -77,6 +77,7 @@ int main(int argc, char **argv) {
if (!StopAtLevelRaise) {
Passes.add(createRaisePointerReferencesPass()); // Eliminate casts
Passes.add(createPromoteMemoryToRegister()); // Promote alloca's to regs
+ Passes.add(createReassociatePass()); // Reassociate expressions
Passes.add(createInstructionCombiningPass()); // Combine silly seq's
Passes.add(createDeadInstEliminationPass()); // Kill InstCombine remnants
Passes.add(createGCSEPass()); // Remove common subexprs