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
This commit is contained in:
Jeff Law 2017-02-23 14:43:03 -07:00 committed by Jeff Law
parent cb701078b1
commit 06b909b07e
2 changed files with 7 additions and 1 deletions

View 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

View 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)