On Mon, Jan 30, 2017 at 12:43 PM, Maxim Kuvyrkov <maxim.kuvyr...@linaro.org> wrote: > This patch fixes heuristic in loop array prefetching to use > "round-to-nearest" instead of "floor", which is what _all_ other similar > heuristics in the pass are doing.
_all_ is a bit over-exaggregating... In the context we are testing this round value against a min_insn_to_mem_ratio so rounding down makes sense to me. What am I missing? Richard. > This subtle change allows a critical loop in 429.mcf to get prefetches > without making the pass too aggressive, which causes regressions on other > benchmarks. > > Bootstrapped and regtested on x86_64-linux-gnu and aarch64-linux-gnu. > > -- > Maxim Kuvyrkov > www.linaro.org >