re PR tree-optimization/66823 (-ftree-loop-if-convert-stores miscompiles gfortran.dg/elemental_optional_args_3.f90)

2015-07-10  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/66823
	* tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
	inverted predicate.

	* gcc.dg/vect/pr61194.c: Remove -ftree-loop-if-convert-stores
	which should not be necessary.  XFAIL.

From-SVN: r225652
This commit is contained in:
Richard Biener 2015-07-10 07:53:06 +00:00 committed by Richard Biener
parent 3baeecac5f
commit 9d0862bf58
4 changed files with 14 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2015-07-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/66823
* tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
inverted predicate.
2015-07-09 Steve Ellcey <sellcey@imgtec.com>
* config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update

View File

@ -1,3 +1,9 @@
2015-07-10 Richard Biener <rguenther@suse.de>
PR tree-optimization/66823
* gcc.dg/vect/pr61194.c: Remove -ftree-loop-if-convert-stores
which should not be necessary. XFAIL.
2015-07-09 Paolo Carlini <paolo.carlini@oracle.com>
PR c++/64848

View File

@ -1,5 +1,4 @@
/* { dg-require-effective-target vect_cond_mixed } */
/* { dg-additional-options "-ftree-loop-if-convert-stores" } */
#include "tree-vect.h"
@ -39,4 +38,4 @@ int main()
return 0;
}
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" } } */
/* { dg-final { scan-tree-dump-times "vectorized 1 loops" 1 "vect" { xfail *-*-* } } } */

View File

@ -642,7 +642,7 @@ memrefs_read_or_written_unconditionally (gimple stmt,
|| TREE_CODE (ref_base_b) == REALPART_EXPR)
ref_base_b = TREE_OPERAND (ref_base_b, 0);
if (!operand_equal_p (ref_base_a, ref_base_b, 0))
if (operand_equal_p (ref_base_a, ref_base_b, 0))
{
tree cb = bb_predicate (gimple_bb (DR_STMT (b)));