diff options
author | Changpeng Fang <changpeng.fang@amd.com> | 2010-06-25 18:25:00 +0000 |
---|---|---|
committer | Sebastian Pop <spop@gcc.gnu.org> | 2010-06-25 18:25:00 +0000 |
commit | 1fbb509aacf96e6d4d344ea41fadca74cad7ee99 (patch) | |
tree | 30ce2860b1afc7397546e4427a13dcdcc2f04f2b /gcc/tree-if-conv.c | |
parent | c14420e17389ea8cae7a847c7d1733c77b227399 (diff) | |
download | gcc-1fbb509aacf96e6d4d344ea41fadca74cad7ee99.zip gcc-1fbb509aacf96e6d4d344ea41fadca74cad7ee99.tar.gz gcc-1fbb509aacf96e6d4d344ea41fadca74cad7ee99.tar.bz2 |
Enable prefetching at -O3 for AMD cpus.
2010-06-25 Changpeng Fang <changpeng.fang@amd.com>
* common.opt (fprefetch-loop-arrays): Re-define
-fprefetch-loop-arrays as a tri-state option with the initial
value of -1.
* tree-ssa-loop.c (gate_tree_ssa_loop_prefetch): Invoke prefetch
pass only when flag_prefetch_loop_arrays > 0.
* toplev.c (process_options): Note that, with tri-states,
flag_prefetch_loop_arrays>0 means prefetching is enabled.
* config/i386/i386.c (override_options): Enable prefetching at -O3
for a set of CPUs that sw prefetching is helpful.
(software_prefetching_beneficial_p): New. Return TRUE if software
prefetching is beneficial for the given CPU.
From-SVN: r161391
Diffstat (limited to 'gcc/tree-if-conv.c')
0 files changed, 0 insertions, 0 deletions