[PATCH v2] expansion: make layout of x_shift*cost[][][] more efficient

2023-04-18 Thread Vineet Gupta
when debugging expmed.[ch] for PR/108987 saw that some of the cost arrays have less than ideal layout as follows: x_shift*cost[0..63][speed][modes] We would want speed to be first index since a typical compile will have that fixed, followed by mode and then the shift values. It should be non-

Re: [PATCH v2] expansion: make layout of x_shift*cost[][][] more efficient

2023-04-19 Thread Richard Biener via Gcc-patches
On Tue, Apr 18, 2023 at 10:51 PM Vineet Gupta wrote: > > when debugging expmed.[ch] for PR/108987 saw that some of the cost arrays have > less than ideal layout as follows: > >x_shift*cost[0..63][speed][modes] > > We would want speed to be first index since a typical compile will have > that f