+2019-08-02 Steve Ellcey <sellcey@marvell.com>
+
+ * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
+ build_distinct_type_copy.
+ (simd_clone_adjust_argument_types): Ditto.
+ (simd_clone_adjust): Call build_distinct_type_copy here.
+ (expand_simd_clones): Ditto.
+
2019-08-02 Uroš Bizjak <ubizjak@gmail.com>
PR target/91201
/* Adjust the function return type. */
if (orig_rettype == void_type_node)
return NULL_TREE;
- TREE_TYPE (fndecl) = build_distinct_type_copy (TREE_TYPE (fndecl));
t = TREE_TYPE (TREE_TYPE (fndecl));
if (INTEGRAL_TYPE_P (t) || POINTER_TYPE_P (t))
veclen = node->simdclone->vecsize_int;
else
new_reversed = void_list_node;
}
-
- tree new_type = build_distinct_type_copy (TREE_TYPE (node->decl));
- TYPE_ARG_TYPES (new_type) = new_reversed;
- TREE_TYPE (node->decl) = new_type;
-
+ TYPE_ARG_TYPES (TREE_TYPE (node->decl)) = new_reversed;
adjustments.release ();
}
args.release ();
{
push_cfun (DECL_STRUCT_FUNCTION (node->decl));
+ TREE_TYPE (node->decl) = build_distinct_type_copy (TREE_TYPE (node->decl));
targetm.simd_clone.adjust (node);
tree retval = simd_clone_adjust_return_type (node);
simd_clone_adjust (n);
else
{
+ TREE_TYPE (n->decl)
+ = build_distinct_type_copy (TREE_TYPE (n->decl));
targetm.simd_clone.adjust (n);
simd_clone_adjust_return_type (n);
simd_clone_adjust_argument_types (n);