diff options
author | Richard Sandiford <richard.sandiford@arm.com> | 2015-07-05 07:50:31 +0000 |
---|---|---|
committer | Richard Sandiford <rsandifo@gcc.gnu.org> | 2015-07-05 07:50:31 +0000 |
commit | 134b044daf0999cee9f85203be3fa35c48051da1 (patch) | |
tree | 2ead129b539b876961452bf5f3dd621395a14b87 /gcc/builtins.c | |
parent | 43c7dca8816e84a7b2d6caa10bed3c0a3c0c7e8e (diff) | |
download | gcc-134b044daf0999cee9f85203be3fa35c48051da1.zip gcc-134b044daf0999cee9f85203be3fa35c48051da1.tar.gz gcc-134b044daf0999cee9f85203be3fa35c48051da1.tar.bz2 |
target-insns.def (prefetch): New targetm instruction pattern.
gcc/
* target-insns.def (prefetch): New targetm instruction pattern.
* tree-ssa-loop-prefetch.c: Include targeth.
(tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
of HAVE_*/gen_* interface.
* builtins.c (expand_builtin_prefetch): Likewise.
* toplev.c (process_options): Likewise.
From-SVN: r225424
Diffstat (limited to 'gcc/builtins.c')
-rw-r--r-- | gcc/builtins.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gcc/builtins.c b/gcc/builtins.c index f354694..b98bb06 100644 --- a/gcc/builtins.c +++ b/gcc/builtins.c @@ -1282,18 +1282,16 @@ expand_builtin_prefetch (tree exp) op2 = const0_rtx; } -#ifdef HAVE_prefetch - if (HAVE_prefetch) + if (targetm.have_prefetch ()) { struct expand_operand ops[3]; create_address_operand (&ops[0], op0); create_integer_operand (&ops[1], INTVAL (op1)); create_integer_operand (&ops[2], INTVAL (op2)); - if (maybe_expand_insn (CODE_FOR_prefetch, 3, ops)) + if (maybe_expand_insn (targetm.code_for_prefetch, 3, ops)) return; } -#endif /* Don't do anything with direct references to volatile memory, but generate code to handle other side effects. */ |