Run expression reassociation as part of gccas
authorChris Lattner <sabre@nondot.org>
Wed, 8 May 2002 22:18:20 +0000 (22:18 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 8 May 2002 22:18:20 +0000 (22:18 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2556 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gccas/gccas.cpp

index 59c12713fb5186d83760896ffd8533f770413ab7..cd4ccd2de5032c1b82a14155f391c8fb9efd602e 100644 (file)
@@ -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