Dump partitions before adding them to the worklist.
authorSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Thu, 22 Nov 2012 09:22:53 +0000 (10:22 +0100)
committerSebastian Buchwald <Sebastian.Buchwald@kit.edu>
Fri, 23 Nov 2012 13:47:42 +0000 (14:47 +0100)
This makes the debug output more readable.

ir/opt/combo.c

index c8b038f..93a74cf 100644 (file)
@@ -960,10 +960,11 @@ static partition_t *split_no_followers(partition_t *Z, node_t *g, environment_t
        /* for now, copy the type info tag, it will be adjusted in split_by(). */
        Z_prime->type_is_T_or_C = Z->type_is_T_or_C;
 
-       update_worklist(Z, Z_prime, env);
-
        dump_partition("Now ", Z);
        dump_partition("Created new ", Z_prime);
+
+       update_worklist(Z, Z_prime, env);
+
        return Z_prime;
 }  /* split_no_followers */
 
@@ -1288,6 +1289,9 @@ static partition_t *split(partition_t **pX, node_t *gg, environment_t *env)
        check_partition(X);
        check_partition(X_prime);
 
+       dump_partition("Now ", X);
+       dump_partition("Created new ", X_prime);
+
        /* X' is the smaller part */
        add_to_worklist(X_prime, env);
 
@@ -1312,9 +1316,6 @@ static partition_t *split(partition_t **pX, node_t *gg, environment_t *env)
                }
        }
 
-       dump_partition("Now ", X);
-       dump_partition("Created new ", X_prime);
-
        /* we have to ensure that the partition containing g is returned */
        if (winner != 0) {
                *pX = X_prime;