aboutsummaryrefslogtreecommitdiff
path: root/gcc/cse.c
diff options
context:
space:
mode:
authorRichard Biener <rguenther@suse.de>2014-08-05 13:05:06 +0000
committerRichard Biener <rguenth@gcc.gnu.org>2014-08-05 13:05:06 +0000
commit96b3c03f4e952c913811f2ba7bf2b703ab0d54e4 (patch)
tree6dfae1a4a0cc077331f6a132085edd0b377def68 /gcc/cse.c
parentb8a5fbd280e516d914b41b80132210c6549814cd (diff)
downloadgcc-96b3c03f4e952c913811f2ba7bf2b703ab0d54e4.zip
gcc-96b3c03f4e952c913811f2ba7bf2b703ab0d54e4.tar.gz
gcc-96b3c03f4e952c913811f2ba7bf2b703ab0d54e4.tar.bz2
re PR rtl-optimization/61672 (Less redundant instructions deleted by pre_delete after r208113.)
2014-08-05 Richard Biener <rguenther@suse.de> PR rtl-optimization/61672 * emit-rtl.h (mem_attrs_eq_p): Declare. * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs. * cse.c (exp_equiv_p): Use mem_attrs_eq_p. * cfgcleanup.c (merge_memattrs): Likewise. Include emit-rtl.h. From-SVN: r213638
Diffstat (limited to 'gcc/cse.c')
-rw-r--r--gcc/cse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/cse.c b/gcc/cse.c
index dd9a076..16d2fc1 100644
--- a/gcc/cse.c
+++ b/gcc/cse.c
@@ -2685,7 +2685,7 @@ exp_equiv_p (const_rtx x, const_rtx y, int validate, bool for_gcse)
But because really all MEM attributes should be the same for
equivalent MEMs, we just use the invariant that MEMs that have
the same attributes share the same mem_attrs data structure. */
- if (MEM_ATTRS (x) != MEM_ATTRS (y))
+ if (!mem_attrs_eq_p (MEM_ATTRS (x), MEM_ATTRS (y)))
return 0;
/* If we are handling exceptions, we cannot consider two expressions