Commit 677ef4dd by Yuri Rumyantsev Committed by Kirill Yukhin

re PR tree-optimization/70729 (Loop marked with omp simd pragma is not vectorized)

PR tree-optimization/70729

gcc/
	* tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
	of loop since it can be not valid after transformation.

From-SVN: r237907
parent 02c19e2b
2016-07-01 Yuri Rumyantsev <ysrumyan@gmail.com>
PR tree-optimization/70729
* tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
of loop since it can be not valid after transformation.
2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com> 2016-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
* config/arm/arm.c (thumb_reload_in_hi): Delete. * config/arm/arm.c (thumb_reload_in_hi): Delete.
......
...@@ -204,6 +204,10 @@ adjust_simduid_builtins (hash_table<simduid_to_vf> *htab) ...@@ -204,6 +204,10 @@ adjust_simduid_builtins (hash_table<simduid_to_vf> *htab)
gcc_assert (TREE_CODE (arg) == SSA_NAME); gcc_assert (TREE_CODE (arg) == SSA_NAME);
simduid_to_vf *p = NULL, data; simduid_to_vf *p = NULL, data;
data.simduid = DECL_UID (SSA_NAME_VAR (arg)); data.simduid = DECL_UID (SSA_NAME_VAR (arg));
/* Need to nullify loop safelen field since it's value is not
valid after transformation. */
if (bb->loop_father && bb->loop_father->safelen > 0)
bb->loop_father->safelen = 0;
if (htab) if (htab)
{ {
p = htab->find (&data); p = htab->find (&data);
......
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