backport: re PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction, at tree-vect-loop.c:4633)
Backported from mainline 2012-11-27 Jakub Jelinek <jakub@redhat.com> PR tree-optimization/55110 * tree-vect-loop.c (vectorizable_reduction): Don't assert that STMT_VINFO_RELATED_STMT of orig_stmt is stmt. * gcc.dg/pr55110.c: New test. From-SVN: r196140
This commit is contained in:
parent
72709b5e53
commit
fdd493a46c
|
@ -1,3 +1,12 @@
|
|||
2013-02-19 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
Backported from mainline
|
||||
2012-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/55110
|
||||
* tree-vect-loop.c (vectorizable_reduction): Don't assert
|
||||
that STMT_VINFO_RELATED_STMT of orig_stmt is stmt.
|
||||
|
||||
2013-02-18 Richard Biener <rguenther@suse.de>
|
||||
|
||||
Revert
|
||||
|
|
|
@ -1,3 +1,11 @@
|
|||
2013-02-19 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
Backported from mainline
|
||||
2012-11-27 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
PR tree-optimization/55110
|
||||
* gcc.dg/pr55110.c: New test.
|
||||
|
||||
2013-02-18 Richard Biener <rguenther@suse.de>
|
||||
|
||||
Revert
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
/* PR tree-optimization/55110 */
|
||||
/* { dg-do compile } */
|
||||
/* { dg-options "-O1 -ftree-vectorize" } */
|
||||
|
||||
int
|
||||
foo (int x)
|
||||
{
|
||||
int a, b;
|
||||
for (b = 0; b < 8; b++)
|
||||
for (a = 0; a < 2; a++)
|
||||
x /= 3;
|
||||
return x;
|
||||
}
|
|
@ -4453,7 +4453,6 @@ vectorizable_reduction (gimple stmt, gimple_stmt_iterator *gsi,
|
|||
if (orig_stmt)
|
||||
{
|
||||
orig_stmt_info = vinfo_for_stmt (orig_stmt);
|
||||
gcc_assert (STMT_VINFO_RELATED_STMT (orig_stmt_info) == stmt);
|
||||
gcc_assert (STMT_VINFO_IN_PATTERN_P (orig_stmt_info));
|
||||
gcc_assert (!STMT_VINFO_IN_PATTERN_P (stmt_info));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue