Re: Suboptimal bb ordering with -Os on arm

2016-11-14 Thread Nicolai Stange
Hi Segher, Segher Boessenkool writes: > On Fri, Nov 11, 2016 at 02:16:18AM +0100, Nicolai Stange wrote: >> >> >From the discussion on gcc-patches [1] of what is now the aforementioned >> >> r228318 ("bb-reorder: Add -freorder-blocks-algorithm= and wire i

Re: Suboptimal bb ordering with -Os on arm

2016-11-10 Thread Nicolai Stange
Hi Segher, thanks for your prompt reply! Segher Boessenkool writes: > On Fri, Nov 11, 2016 at 12:03:44AM +0100, Nicolai Stange wrote: >> in the course of doing some benchmarks on arm with -Os, I noticed that >> some list traversion code became significantly slower sin

Suboptimal bb ordering with -Os on arm

2016-11-10 Thread Nicolai Stange
Hi all, in the course of doing some benchmarks on arm with -Os, I noticed that some list traversion code became significantly slower since gcc 5.3 when instruction caches are cold. Reproducer with relevant defines copied from the Linux kernel: struct list_head { struct list_head *next,