Re: i386: Fix some problems in stv cost model

2025-05-12 Thread Jan Hubicka
> > Instructions with latency info are those really different. > > So the uncoverted code has sum of latencies 4 and real latency 3. > > Converted code has sum of latencies 4 and real latency 3 > > (vmod+vpmaxsd+vmov). > > So I do not quite see it should be a win. > > Note this was historically d

Re: i386: Fix some problems in stv cost model

2025-05-11 Thread Richard Biener
> Am 10.05.2025 um 22:28 schrieb Jan Hubicka : > > Hi, > this patch fixes some of problems with cosint in scalar to vector pass. > In particular > 1) the pass uses optimize_insn_for_size which is intended to be used by >expanders and splitters and requires the optimization pass to use >

Re: i386: Fix some problems in stv cost model

2025-05-10 Thread H.J. Lu
On Sun, May 11, 2025 at 4:28 AM Jan Hubicka wrote: > > Hi, > this patch fixes some of problems with cosint in scalar to vector pass. > In particular This caused: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120215 > 1) the pass uses optimize_insn_for_size which is intended to be used by >