aboutsummaryrefslogtreecommitdiff
path: root/gcc
diff options
context:
space:
mode:
authorRichard Earnshaw <rearnsha@arm.com>2003-03-20 16:49:24 +0000
committerRichard Earnshaw <rearnsha@gcc.gnu.org>2003-03-20 16:49:24 +0000
commit952a6df761f3faa54e0d35bc893f2f8a209049e5 (patch)
treecea3d2e981b0834d919519f819b4424d5dc0a4d6 /gcc
parentb4e46cea24515316b941bfacae8417c078fc5701 (diff)
downloadgcc-952a6df761f3faa54e0d35bc893f2f8a209049e5.zip
gcc-952a6df761f3faa54e0d35bc893f2f8a209049e5.tar.gz
gcc-952a6df761f3faa54e0d35bc893f2f8a209049e5.tar.bz2
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
Diffstat (limited to 'gcc')
-rw-r--r--gcc/ChangeLog5
-rw-r--r--gcc/ifcvt.c2
2 files changed, 7 insertions, 0 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog
index b79f2bd..7ac8fc8 100644
--- a/gcc/ChangeLog
+++ b/gcc/ChangeLog
@@ -1,3 +1,8 @@
+2003-03-20 Richard Earnshaw <rearnsha@arm.com>
+
+ * ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
+ information.
+
2003-03-20 Per Bothner <pbothner@apple.com>
Various cleanups to help compile server.
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index ed04aef..0cfd06f 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. */