re PR tree-optimization/66823 (-ftree-loop-if-convert-stores miscompiles gfortran...
authorRichard Biener <rguenther@suse.de>
Fri, 10 Jul 2015 07:53:06 +0000 (07:53 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 10 Jul 2015 07:53:06 +0000 (07:53 +0000)
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

gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/vect/pr61194.c
gcc/tree-if-conv.c

index 43687fe4423b49e61fccff8157745d5e508bedab..3eabd3c4ab50d79a267b4f96d13908cc2096c037 100644 (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
index abdf8177898fd1769c553343b1dab28f76dbf75f..30717ceaf054417b2bbf15ede060761c6abe90c5 100644 (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
index 2ec2200c8b16dbdae26410b256e9b1cf60fe3347..8d74e0096949eb1876c3620983d59d9816ada47d 100644 (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 *-*-* } } } */
index 93d30ef8a091f5bcf585f28843b6a4e5129715f3..ef2612c959c3733fbcc9cfb09aa8c09bd26fc549 100644 (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)));