always enable NO_CFLOOP_WITHOUT_HEAD
authorMatthias Braun <matze@braunis.de>
Tue, 4 Dec 2012 00:36:44 +0000 (01:36 +0100)
committerMatthias Braun <matze@braunis.de>
Tue, 4 Dec 2012 17:15:01 +0000 (18:15 +0100)
ir/ana/ircfscc.c
ir/ana/irscc.c

index 3c3e8dc..289b7aa 100644 (file)
@@ -39,8 +39,6 @@
 #include "irdump.h"
 #include "ircons_t.h"
 
-#define NO_CFLOOPS_WITHOUT_HEAD 1
-
 /** The outermost graph the scc is computed for */
 static ir_graph *outermost_ir_graph;
 /** Current cfloop construction is working on. */
@@ -557,8 +555,6 @@ static void cfscc(ir_node *n)
                           Next actions: Open a new cfloop on the cfloop tree and
                           try to find inner cfloops */
 
-#if NO_CFLOOPS_WITHOUT_HEAD
-
                        /* This is an adaption of the algorithm from fiasco / optscc to
                         * avoid cfloops without Block or Phi as first node.  This should
                         * severely reduce the number of evaluations of nodes to detect
@@ -576,12 +572,6 @@ static void cfscc(ir_node *n)
                                close = 0;
                        }
 
-#else
-
-                       ir_loop *l = new_loop();
-
-#endif
-
                        /* Remove the cfloop from the stack ... */
                        pop_scc_unmark_visit(n);
 
@@ -593,9 +583,7 @@ static void cfscc(ir_node *n)
                        cfscc(tail);
 
                        assert(irn_visited(n));
-#if NO_CFLOOPS_WITHOUT_HEAD
                        if (close)
-#endif
                                close_loop(l);
                } else {
                        /* AS: No cfloop head was found, that is we have straight line code.
index 9658313..edae426 100644 (file)
 #include "pmap.h"
 #include "ircons.h"
 
-/* A variant of the loop tree that avoids loops without head.
-   This reduces the depth of the loop tree. */
-#define NO_LOOPS_WITHOUT_HEAD 1
-
 /** The outermost graph the scc is computed for. */
 static ir_graph *outermost_ir_graph;
 /** Current loop construction is working on. */
@@ -701,7 +697,6 @@ static void scc(ir_node *n)
                           Next actions: Open a new loop on the loop tree and
                                         try to find inner loops */
 
-#if NO_LOOPS_WITHOUT_HEAD
                        /* This is an adaption of the algorithm from fiasco / optscc to
                         * avoid loops without Block or Phi as first node.  This should
                         * severely reduce the number of evaluations of nodes to detect
@@ -721,9 +716,6 @@ static void scc(ir_node *n)
                                l = current_loop;
                                close = 0;
                        }
-#else
-                       ir_loop *l = new_loop();
-#endif
 
                        /* Remove the loop from the stack ... */
                        pop_scc_unmark_visit(n);
@@ -735,9 +727,7 @@ static void scc(ir_node *n)
                        scc(tail);
 
                        assert(irn_visited(n));
-#if NO_LOOPS_WITHOUT_HEAD
                        if (close)
-#endif
                                close_loop(l);
                } else {
                        /* No loop head was found, that is we have straight line code.