Add prefetch configuration to aarch64 backend

Programming / Compilers / GCC - mkuvyrkov [138bc75d-0d04-0410-961f-82ee72b054a4] - 16 June 2017 05:30 EDT

- config/aarch64/aarch64-protos.h (struct cpu_prefetch_tune): New tune structure. (struct tune_params): Use cpu_prefetch_tune instead of cache_line_size. [Unrelated to main purpose of the patch] Place the pointer field last to enable type checking errors when tune structure are wrongly merged.
- config/aarch64/aarch64.c (generic_prefetch_tune,) (exynosm1_prefetch_tune, qdf24xx_prefetch_tune,) (thunderx2t99_prefetch_tune): New tune constants. (tune_params *_tunings): Update all tunings (no functional change). (aarch64_override_options_internal): Set PARAM_SIMULTANEOUS_PREFETCHES, PARAM_L1_CACHE_SIZE, PARAM_L1_CACHE_LINE_SIZE, and PARAM_L2_CACHE_SIZE from tunings structures.

3bf398e Add prefetch configuration to aarch64 backend.
gcc/ChangeLog | 15 ++++++
gcc/config/aarch64/aarch64-protos.h | 16 ++++--
gcc/config/aarch64/aarch64.c | 102 +++++++++++++++++++++++++++---------
3 files changed, 105 insertions(+), 28 deletions(-)


  • Share