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.

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

Attachment: 0003-Fix-prefetch-heuristic-calculation.patch
Description: Binary data

Reply via email to