summaryrefslogtreecommitdiff
path: root/gcc/ifcvt.c
diff options
context:
space:
mode:
authorrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-20 16:49:24 +0000
committerrearnsha <rearnsha@138bc75d-0d04-0410-961f-82ee72b054a4>2003-03-20 16:49:24 +0000
commit286160a596de90a9cf10464b970bae62f8eea63b (patch)
treecea3d2e981b0834d919519f819b4424d5dc0a4d6 /gcc/ifcvt.c
parent568139e45314dddea8e1d218ea3d61b1235a5b8d (diff)
downloadgcc-286160a596de90a9cf10464b970bae62f8eea63b.tar.gz
* ifcvt.c (find_if_case_1): If we add a new bb, update the dominance
information. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@64618 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ifcvt.c')
-rw-r--r--gcc/ifcvt.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gcc/ifcvt.c b/gcc/ifcvt.c
index ed04aefed64..0cfd06f3029 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. */