PR tree-optimization/58472
* tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
simd_lane_access set inv_p = false.
* omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
the simduid magic VAR_DECL.
* c-c++-common/gomp/pr58472.c: New test.
From-SVN: r202748
+2013-09-19 Jakub Jelinek <jakub@redhat.com>
+
+ PR tree-optimization/58472
+ * tree-vect-stmts.c (vectorizable_store, vectorizable_load): For
+ simd_lane_access set inv_p = false.
+ * omp-low.c (lower_rec_input_clauses): Set TREE_NO_WARNING on
+ the simduid magic VAR_DECL.
+
2013-09-19 Jan Hubicka <jh@suse.cz>
* i386.c (generic_memcpy, generic_memset): Fix 32bit template.
if (lane)
{
tree uid = create_tmp_var (ptr_type_node, "simduid");
+ /* Don't want uninit warnings on simduid, it is always uninitialized,
+ but we use it not for the value, but for the DECL_UID only. */
+ TREE_NO_WARNING (uid) = 1;
gimple g
= gimple_build_call_internal (IFN_GOMP_SIMD_LANE, 1, uid);
gimple_call_set_lhs (g, lane);
dataref_ptr = unshare_expr (DR_BASE_ADDRESS (first_dr));
dataref_offset = build_int_cst (reference_alias_ptr_type
(DR_REF (first_dr)), 0);
+ inv_p = false;
}
else
dataref_ptr
dataref_ptr = unshare_expr (DR_BASE_ADDRESS (first_dr));
dataref_offset = build_int_cst (reference_alias_ptr_type
(DR_REF (first_dr)), 0);
+ inv_p = false;
}
else
dataref_ptr