re PR tree-optimization/79578 (Unnecessary instructions in generated code)
authorJeff Law <law@redhat.com>
Thu, 23 Feb 2017 21:43:03 +0000 (14:43 -0700)
committerJeff Law <law@gcc.gnu.org>
Thu, 23 Feb 2017 21:43:03 +0000 (14:43 -0700)
PR tree-optimization/79578
* tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
in call to operand_equal_p.

From-SVN: r245688

gcc/ChangeLog
gcc/tree-ssa-dse.c

index d003ab1..37ae06a 100644 (file)
@@ -1,3 +1,9 @@
+2017-02-23  Jeff Law  <law@redhat.com>
+
+       PR tree-optimization/79578
+       * tree-ssa-dse.c (clear_bytes_written_by): Use OEP_ADDRESS_OF
+       in call to operand_equal_p.
+
 2017-01-23  Dominique d'Humieres  <dominiq@lps.ens.fr>
 
        PR target/71017
index a82e164..53feaf3 100644 (file)
@@ -176,7 +176,7 @@ clear_bytes_written_by (sbitmap live_bytes, gimple *stmt, ao_ref *ref)
   /* Verify we have the same base memory address, the write
      has a known size and overlaps with REF.  */
   if (valid_ao_ref_for_dse (&write)
-      && operand_equal_p (write.base, ref->base, 0)
+      && operand_equal_p (write.base, ref->base, OEP_ADDRESS_OF)
       && write.size == write.max_size
       && ((write.offset < ref->offset
           && write.offset + write.size > ref->offset)