Commit cf5b2be2 by Cong Hou Committed by Cong Hou

re PR tree-optimization/60000 (GCC trunk build failure caused by the vectorizer)

2014-02-03  Cong Hou  <congh@google.com>

	PR tree-optimization/60000
	* tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
	if the vectorized statement is a store.  A store statement can only
	appear at the end of pattern statements.

2014-02-03  Cong Hou  <congh@google.com>

	PR tree-optimization/60000
	* g++.dg/vect/pr60000.cc: New test.

From-SVN: r207433
parent e3aaedd6
2014-02-03 Cong Hou <congh@google.com>
PR tree-optimization/60000
* tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
if the vectorized statement is a store. A store statement can only
appear at the end of pattern statements.
2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
* config/i386/i386.c (flag_opts): Add -mlong-double-128.
......
2014-02-03 Cong Hou <congh@google.com>
PR tree-optimization/60000
* g++.dg/vect/pr60000.cc: New test.
2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
* gcc.target/i386/long-double-64-1.c: Verify __multf3 isn't used.
......
/* { dg-do compile } */
/* { dg-additional-options "-fno-tree-vrp" } */
void foo (bool* a, int* b)
{
for (int i = 0; i < 1000; ++i)
{
a[i] = i % 2;
b[i] = i % 3;
}
}
/* { dg-final { cleanup-tree-dump "vect" } } */
......@@ -6054,7 +6054,6 @@ vect_transform_loop (loop_vec_info loop_vinfo)
the chain. */
gsi_next (&si);
vect_remove_stores (GROUP_FIRST_ELEMENT (stmt_info));
continue;
}
else
{
......@@ -6064,11 +6063,13 @@ vect_transform_loop (loop_vec_info loop_vinfo)
unlink_stmt_vdef (store);
gsi_remove (&si, true);
release_defs (store);
continue;
}
}
if (!transform_pattern_stmt && gsi_end_p (pattern_def_si))
/* Stores can only appear at the end of pattern statements. */
gcc_assert (!transform_pattern_stmt);
pattern_def_seq = NULL;
}
else if (!transform_pattern_stmt && gsi_end_p (pattern_def_si))
{
pattern_def_seq = NULL;
gsi_next (&si);
......
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