Re: [PATCH v2] Consider frequency in cost estimation when converting scalar to vector.

2025-04-29 Thread Jan Hubicka
> > so gain is the difference of runtime of integer variant compared to > > vector vairant and cost are the extra int->see and sse->int conversions > > needed? > > > > If you scale everything by a BB frequency, you will get a weird > > behaviour if chain happens to consist only of instructions in

Re: [PATCH v2] Consider frequency in cost estimation when converting scalar to vector.

2025-04-29 Thread Jan Hubicka
> > > I am generally trying to get rid of remaing uses of REG_FREQ since the > > > 1 based fixed point arithmetics iot always working that well. > > > > > > You can do the sums in profile_count type (doing something reasonable > > > when count is uninitialized) and then convert it to sreal for

Re: [PATCH v2] Consider frequency in cost estimation when converting scalar to vector.

2025-04-29 Thread Jan Hubicka
> > I am generally trying to get rid of remaing uses of REG_FREQ since the > > 1 based fixed point arithmetics iot always working that well. > > > > You can do the sums in profile_count type (doing something reasonable > > when count is uninitialized) and then convert it to sreal for the final

[PATCH v2] Consider frequency in cost estimation when converting scalar to vector.

2025-04-28 Thread liuhongt
> I am generally trying to get rid of remaing uses of REG_FREQ since the > 1 based fixed point arithmetics iot always working that well. > > You can do the sums in profile_count type (doing something reasonable > when count is uninitialized) and then convert it to sreal for the final > heuristi