diff options
author | Revital Eres <revital.eres@linaro.org> | 2011-05-11 12:38:12 +0000 |
---|---|---|
committer | Revital Eres <revitale@gcc.gnu.org> | 2011-05-11 12:38:12 +0000 |
commit | fc6970e432491e8bd0451c69bdca14985ccbe8df (patch) | |
tree | caa6a3161983772e0f84987896fcbdc97b5fd4f3 /gcc/ddg.c | |
parent | 41a58a92c3be093fd963d1fdea1231631e06fc32 (diff) | |
download | gcc-fc6970e432491e8bd0451c69bdca14985ccbe8df.tar.gz |
Support closing_branch_deps
From-SVN: r173654
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); |