Mercurial > hg > CbC > CbC_gcc
diff gcc/cfghooks.c @ 55:77e2b8dfacca gcc-4.4.5
update it from 4.4.3 to 4.5.0
author | ryoma <e075725@ie.u-ryukyu.ac.jp> |
---|---|
date | Fri, 12 Feb 2010 23:39:51 +0900 |
parents | a06113de4d67 |
children | f6334be47118 |
line wrap: on
line diff
--- a/gcc/cfghooks.c Sun Feb 07 18:28:00 2010 +0900 +++ b/gcc/cfghooks.c Fri Feb 12 23:39:51 2010 +0900 @@ -437,6 +437,7 @@ new_bb->count = bb->count; new_bb->frequency = bb->frequency; new_bb->loop_depth = bb->loop_depth; + new_bb->discriminator = bb->discriminator; if (dom_info_available_p (CDI_DOMINATORS)) { @@ -769,7 +770,7 @@ && dummy->loop_father->header == dummy && dummy->loop_father->latch == e_src) dummy->loop_father->latch = jump; - + if (new_bb_cbk != NULL) new_bb_cbk (jump); } @@ -829,7 +830,7 @@ /* Fix up edges that now fall through, or rather should now fall through but previously required a jump around now deleted blocks. Simplify the search by only examining blocks numerically adjacent, since this - is how find_basic_blocks created them. */ + is how they were created. */ void tidy_fallthru_edges (void) @@ -852,9 +853,9 @@ a single successor. If we had a conditional branch to the next instruction when - find_basic_blocks was called, then there will only be one - out edge for the block which ended with the conditional - branch (since we do not create duplicate edges). + CFG was built, then there will only be one out edge for the + block which ended with the conditional branch (since we do + not create duplicate edges). Furthermore, the edge will be marked as a fallthru because we merge the flags for the duplicate edges. So we do not want to