use get_irn_ne() instead of (direct) call to get_irn_link()
authorMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 19 Oct 2007 20:06:27 +0000 (20:06 +0000)
committerMichael Beck <beck@ipd.info.uni-karlsruhe.de>
Fri, 19 Oct 2007 20:06:27 +0000 (20:06 +0000)
[r16291]

ir/opt/opt_osr.c

index 27d34e9..e14eb1e 100644 (file)
@@ -498,7 +498,7 @@ static void classify_iv(scc *pscc, iv_env *env) {
 
        /* find the header block for this scc */
        for (irn = pscc->head; irn; irn = next) {
-               node_entry *e = get_irn_link(irn);
+               node_entry *e = get_irn_ne(irn);
                ir_node *block = get_nodes_block(irn);
 
                next = e->next;
@@ -598,7 +598,7 @@ fail:
  */
 static void process_scc(scc *pscc, iv_env *env) {
        ir_node *head = pscc->head;
-       node_entry *e = get_irn_link(head);
+       node_entry *e = get_irn_ne(head);
 
 #ifdef DEBUG_libfirm
        {
@@ -606,7 +606,7 @@ static void process_scc(scc *pscc, iv_env *env) {
 
                DB((dbg, LEVEL_4, " SCC at %p:\n ", pscc));
                for (irn = pscc->head; irn; irn = next) {
-                       node_entry *e = get_irn_link(irn);
+                       node_entry *e = get_irn_ne(irn);
 
                        next = e->next;
 
@@ -675,7 +675,7 @@ static void remove_phi_cycle(scc *pscc, iv_env *env) {
  */
 static void process_phi_only_scc(scc *pscc, iv_env *env) {
        ir_node *head = pscc->head;
-       node_entry *e = get_irn_link(head);
+       node_entry *e = get_irn_ne(head);
 
 #ifdef DEBUG_libfirm
        {
@@ -683,7 +683,7 @@ static void process_phi_only_scc(scc *pscc, iv_env *env) {
 
                DB((dbg, LEVEL_4, " SCC at %p:\n ", pscc));
                for (irn = pscc->head; irn; irn = next) {
-                       node_entry *e = get_irn_link(irn);
+                       node_entry *e = get_irn_ne(irn);
 
                        next = e->next;