From a337a40424b4b722262682dd553870403386eaec Mon Sep 17 00:00:00 2001 From: hagog Date: Mon, 21 Mar 2005 18:49:29 +0000 Subject: Fix PR middle-end/20177 and add test case. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@96828 138bc75d-0d04-0410-961f-82ee72b054a4 --- gcc/ddg.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'gcc/ddg.c') diff --git a/gcc/ddg.c b/gcc/ddg.c index a54a87c0744..5a2cbeee109 100644 --- a/gcc/ddg.c +++ b/gcc/ddg.c @@ -187,6 +187,8 @@ create_ddg_dependence (ddg_ptr g, ddg_node_ptr src_node, else free (e); } + else if (t == ANTI_DEP && dt == REG_DEP) + free (e); /* We can fix broken anti register deps using reg-moves. */ else add_edge_to_ddg (g, e); } -- cgit v1.2.1