[patch] Move and rename compute_idf

Steven Bosscher stevenb.gcc@gmail.com
Wed Jun 18 22:38:00 GMT 2008


Hi,

The attached patch moves compute_idf from tree-into-ssa.c to
cfganal.c, and renames it to compute_iterative_dominance_frontiers
(which seems appropriate now that it's not a local function anymore).

En passant the patch removes from insert_phi_nodes_for a redundant
check for SSA_NAME.  Just a few lines up, there is an "if
(TREE_CODE(var) == SSA_NAME)" path, so var can't be an SSA_NAME in the
else-branch of that if ;-)

OK for the trunk?

Gr.
Steven
-------------- next part --------------
A non-text attachment was scrubbed...
Name: move_compute_idf.diff
Type: text/x-patch
Size: 7655 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20080618/ea8e92b4/attachment.bin>


More information about the Gcc-patches mailing list