diff options
author | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-23 08:37:24 +0000 |
---|---|---|
committer | rguenth <rguenth@138bc75d-0d04-0410-961f-82ee72b054a4> | 2013-05-23 08:37:24 +0000 |
commit | 81c3220e0b032744b1bfaa05c7ce9cb8cae36760 (patch) | |
tree | 637da4fafb87f6dde34b1cfa4bd4ab35daa6d28d /gcc/ira.c | |
parent | 2ed648d91513aa4c6f3b59e518ce5d3adf363184 (diff) | |
download | gcc-81c3220e0b032744b1bfaa05c7ce9cb8cae36760.tar.gz |
2013-05-23 Richard Biener <rguenther@suse.de>
PR rtl-optimization/57341
* ira.c (validate_equiv_mem_from_store): Use anti_dependence
instead of true_dependence.
* gcc.dg/torture/pr57341.c: New testcase.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@199237 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/ira.c')
-rw-r--r-- | gcc/ira.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ira.c b/gcc/ira.c index a8631c96b4f..ff901aa5d91 100644 --- a/gcc/ira.c +++ b/gcc/ira.c @@ -2520,7 +2520,7 @@ validate_equiv_mem_from_store (rtx dest, const_rtx set ATTRIBUTE_UNUSED, if ((REG_P (dest) && reg_overlap_mentioned_p (dest, equiv_mem)) || (MEM_P (dest) - && true_dependence (dest, VOIDmode, equiv_mem))) + && anti_dependence (equiv_mem, dest))) equiv_mem_modified = 1; } |