This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[lto] PATCH: CALL_EXPR changes to gcc/tree-ssa-loop-prefetch.c
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Wed, 12 Jul 2006 15:35:46 -0400
- Subject: [lto] PATCH: CALL_EXPR changes to gcc/tree-ssa-loop-prefetch.c
Already committed as "obvious".
-Sandra
2006-07-12 Sandra Loosemore <sandra@codesourcery.com>
* gcc/tree-ssa-loop-prefetch.c (issue_prefetch_ref): Use
build_call_expr.
Index: gcc/tree-ssa-loop-prefetch.c
===================================================================
*** gcc/tree-ssa-loop-prefetch.c (revision 115346)
--- gcc/tree-ssa-loop-prefetch.c (working copy)
*************** static void
*** 816,822 ****
issue_prefetch_ref (struct mem_ref *ref, unsigned unroll_factor, unsigned ahead)
{
HOST_WIDE_INT delta;
! tree addr, addr_base, prefetch, params, write_p;
block_stmt_iterator bsi;
unsigned n_prefetches, ap;
--- 816,822 ----
issue_prefetch_ref (struct mem_ref *ref, unsigned unroll_factor, unsigned ahead)
{
HOST_WIDE_INT delta;
! tree addr, addr_base, prefetch, write_p;
block_stmt_iterator bsi;
unsigned n_prefetches, ap;
*************** issue_prefetch_ref (struct mem_ref *ref,
*** 840,850 ****
/* Create the prefetch instruction. */
write_p = ref->write_p ? integer_one_node : integer_zero_node;
! params = tree_cons (NULL_TREE, addr,
! tree_cons (NULL_TREE, write_p, NULL_TREE));
!
! prefetch = build_function_call_expr (built_in_decls[BUILT_IN_PREFETCH],
! params);
bsi_insert_before (&bsi, prefetch, BSI_SAME_STMT);
}
}
--- 840,847 ----
/* Create the prefetch instruction. */
write_p = ref->write_p ? integer_one_node : integer_zero_node;
! prefetch = build_call_expr (built_in_decls[BUILT_IN_PREFETCH],
! 2, addr, write_p);
bsi_insert_before (&bsi, prefetch, BSI_SAME_STMT);
}
}