diff options
author | revitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 12:38:12 +0000 |
---|---|---|
committer | revitale <revitale@138bc75d-0d04-0410-961f-82ee72b054a4> | 2011-05-11 12:38:12 +0000 |
commit | 6f7f081fd93606c4a830f5829a3d94f9f82e3e70 (patch) | |
tree | caa6a3161983772e0f84987896fcbdc97b5fd4f3 /gcc/ddg.c | |
parent | a37d97a55c7195c31a324cde8f9ac64f83439ec6 (diff) | |
download | gcc-6f7f081fd93606c4a830f5829a3d94f9f82e3e70.tar.gz |
Support closing_branch_deps
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@173654 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ddg.c')
-rw-r--r-- | gcc/ddg.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gcc/ddg.c b/gcc/ddg.c index 4543ba7d170..b8ae375f153 100644 --- a/gcc/ddg.c +++ b/gcc/ddg.c @@ -197,6 +197,11 @@ create_ddg_dep_from_intra_loop_link (ddg_ptr g, ddg_node_ptr src_node, } } + /* If a true dep edge enters the branch create an anti edge in the + opposite direction to prevent the creation of reg-moves. */ + if ((DEP_TYPE (link) == REG_DEP_TRUE) && JUMP_P (dest_node->insn)) + create_ddg_dep_no_link (g, dest_node, src_node, ANTI_DEP, REG_DEP, 1); + latency = dep_cost (link); e = create_ddg_edge (src_node, dest_node, t, dt, latency, distance); add_edge_to_ddg (g, e); |