This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] Obvious fix to df.c
- To: gcc-patches at gcc dot gnu dot org
- Subject: [PATCH] Obvious fix to df.c
- From: Daniel Berlin <dan at cgsoftware dot com>
- Date: Sun, 29 Jul 2001 14:18:18 -0400
Without this, the reaching defs/uses (and therefore, du and ud chains)
are completely wrong.
We weren't adding the successors/preds to the worklist like we should,
we readded the current bb.
Whoops.
Index: df.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/df.c,v
retrieving revision 1.1.2.7
diff -c -3 -p -w -B -b -r1.1.2.7 df.c
*** df.c 2001/07/17 21:40:42 1.1.2.7
--- df.c 2001/07/29 18:17:06
*************** df_rd_global_compute (df, blocks)
*** 1681,1687 ****
if (e->dest == EXIT_BLOCK_PTR)
continue;
! SET_BIT (worklist, i);
}
}
}
--- 1681,1687 ----
if (e->dest == EXIT_BLOCK_PTR)
continue;
! SET_BIT (worklist, e->dest->index);
}
}
}
*************** df_ru_global_compute (df, blocks)
*** 1758,1764 ****
if (e->src == ENTRY_BLOCK_PTR)
continue;
! SET_BIT (worklist, i);
}
}
}
--- 1758,1764 ----
if (e->src == ENTRY_BLOCK_PTR)
continue;
! SET_BIT (worklist, e->src->index);
}
}
}
--
"I bought one of those little glass ball things with the snow in
it. You know, you turn it upside down then you turn it back and
it starts to snow. I bought one, except this has a snow plow
that does it in rows.
"-Steven Wright