From: Richard Earnshaw Date: Thu, 20 Mar 2003 16:49:24 +0000 (+0000) Subject: ifcvt.c (find_if_case_1): If we add a new bb, update the dominance information. X-Git-Tag: releases/gcc-3.4.0~7787 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=952a6df761f3faa54e0d35bc893f2f8a209049e5;p=thirdparty%2Fgcc.git ifcvt.c (find_if_case_1): If we add a new bb, update the dominance information. * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance information. From-SVN: r64618 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index b79f2bd6b543..7ac8fc88f071 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,8 @@ +2003-03-20 Richard Earnshaw + + * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance + information. + 2003-03-20 Per Bothner Various cleanups to help compile server. diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c index ed04aefed644..0cfd06f30296 100644 --- a/gcc/ifcvt.c +++ b/gcc/ifcvt.c @@ -2741,6 +2741,8 @@ find_if_case_1 (test_bb, then_edge, else_edge) { new_bb->index = then_bb_index; BASIC_BLOCK (then_bb_index) = new_bb; + if (post_dominators) + add_to_dominance_info (post_dominators, new_bb); } /* We've possibly created jump to next insn, cleanup_cfg will solve that later. */