Commit 7fc3eedb by Jakub Jelinek Committed by Jakub Jelinek

re PR tree-optimization/55110 (Internal compiler error in…

re PR tree-optimization/55110 (Internal compiler error in vectorizable_reduction, at tree-vect-loop.c:4633)

	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: r193845
parent 381d45ed
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.
2012-11-27 Richard Biener <rguenther@suse.de> 2012-11-27 Richard Biener <rguenther@suse.de>
* gimple-fold.c (fold_stmt_1): Remove unnecessary code. * gimple-fold.c (fold_stmt_1): Remove unnecessary code.
2012-11-27 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/55110
* gcc.dg/pr55110.c: New test.
2012-11-27 Richard Biener <rguenther@suse.de> 2012-11-27 Richard Biener <rguenther@suse.de>
PR middle-end/55331 PR middle-end/55331
......
/* 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;
}
...@@ -4624,7 +4624,6 @@ vectorizable_reduction (gimple stmt, gimple_stmt_iterator *gsi, ...@@ -4624,7 +4624,6 @@ vectorizable_reduction (gimple stmt, gimple_stmt_iterator *gsi,
if (orig_stmt) if (orig_stmt)
{ {
orig_stmt_info = vinfo_for_stmt (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 (orig_stmt_info));
gcc_assert (!STMT_VINFO_IN_PATTERN_P (stmt_info)); gcc_assert (!STMT_VINFO_IN_PATTERN_P (stmt_info));
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment