- do not treat Constants as live-ins: this assures, that a
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Oct 2008 02:13:58 +0000 (02:13 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Thu, 30 Oct 2008 02:13:58 +0000 (02:13 +0000)
  meltet block has the same number of inputs like the original

[r23306]

ir/opt/opt_blocks.c

index 647f51d..38b2418 100644 (file)
@@ -466,10 +466,13 @@ void propagate_blocks(partition_t *part, environment_t *env) {
 
                                if (block != bl->block) {
                                        p_node = create_node(pred, env);
-                                       p_node->is_input = 1;
                                        add_node(bl, p_node);
-                                       if (! is_Phi(irn))
-                                               add_pair(bl, irn, i, env);
+                                       /* do not threat Constants like live-ins */
+                                       if (! is_irn_constlike(irn)) {
+                                               p_node->is_input = 1;
+                                               if (! is_Phi(irn))
+                                                       add_pair(bl, irn, i, env);
+                                       }
                                } else if (! irn_visited_else_mark(pred)) {
                                        /* not yet visited, ok */
                                        p_node = create_node(pred, env);