diff options
author | hagog <hagog@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 18:49:29 +0000 |
---|---|---|
committer | hagog <hagog@138bc75d-0d04-0410-961f-82ee72b054a4> | 2005-03-21 18:49:29 +0000 |
commit | a337a40424b4b722262682dd553870403386eaec (patch) | |
tree | f2b248b3f124017096da7b8acade677c20bf2d16 /gcc/ddg.c | |
parent | 9624cab18d22dcf72369ca32af66b931b3c301b9 (diff) | |
download | gcc-a337a40424b4b722262682dd553870403386eaec.tar.gz |
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
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r-- | gcc/ddg.c | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |