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 d003ab1ad677ef824332d8846022ffa58651ac85..37ae06af4f3de3577d52d3a93908d966e4615f3f 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 a82e16449c49ad93914a27df525e05c00e8c1680..53feaf3f4f763e68e4b5c862efd62c9170f67786 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)