From: Jeff Law Date: Thu, 23 Feb 2017 21:43:03 +0000 (-0700) Subject: re PR tree-optimization/79578 (Unnecessary instructions in generated code) X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=06b909b07e840d648a425e0ede5947616354f11b;p=gcc.git re PR tree-optimization/79578 (Unnecessary instructions in generated code) 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 --- diff --git a/gcc/ChangeLog b/gcc/ChangeLog index d003ab1ad67..37ae06af4f3 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,3 +1,9 @@ +2017-02-23 Jeff Law + + 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 PR target/71017 diff --git a/gcc/tree-ssa-dse.c b/gcc/tree-ssa-dse.c index a82e16449c4..53feaf3f4f7 100644 --- a/gcc/tree-ssa-dse.c +++ b/gcc/tree-ssa-dse.c @@ -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)