[tree-ssa] Obvious change in compute_dominance_frontiers
Zdenek Dvorak
rakdver@atrey.karlin.mff.cuni.cz
Sun Dec 7 20:18:00 GMT 2003
Hello,
compute_dominance_frontiers assumes that
BASIC_BLOCK (0) == ENTRY_BLOCK_PTR->succ->dest, which does not have to
be the case in general. The change commited as obvious.
Zdenek
* tree-cfg.c (compute_dominance_frontiers): Don't assume that
the first block has index 0.
Index: tree-cfg.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/Attic/tree-cfg.c,v
retrieving revision 1.1.4.231
diff -c -3 -p -r1.1.4.231 tree-cfg.c
*** tree-cfg.c 7 Dec 2003 10:07:45 -0000 1.1.4.231
--- tree-cfg.c 7 Dec 2003 20:13:47 -0000
*************** compute_dominance_frontiers (bitmap *fro
*** 1887,1893 ****
sbitmap_zero (done);
! compute_dominance_frontiers_1 (frontiers, idom, 0, done);
sbitmap_free (done);
--- 1887,1895 ----
sbitmap_zero (done);
! compute_dominance_frontiers_1 (frontiers, idom,
! ENTRY_BLOCK_PTR->succ->dest->index,
! done);
sbitmap_free (done);
More information about the Gcc-patches
mailing list