Re: [PATCH] [x86] properly compute fp/mode for scalar ops for vectorizer costing

2025-07-11 Thread Richard Biener
On Thu, 10 Jul 2025, Richard Biener wrote: > On Thu, 10 Jul 2025, Jan Hubicka wrote: > > > > The x86 add_stmt_hook relies on the passed vectype to determine > > > the mode and whether it is FP for a scalar operation. This is > > > unreliable now for stmts involving patterns and in the future whe

Re: [PATCH] [x86] properly compute fp/mode for scalar ops for vectorizer costing

2025-07-10 Thread Richard Biener
On Thu, 10 Jul 2025, Jan Hubicka wrote: > > The x86 add_stmt_hook relies on the passed vectype to determine > > the mode and whether it is FP for a scalar operation. This is > > unreliable now for stmts involving patterns and in the future when > > there is no vector type passed for scalar operat

Re: [PATCH] [x86] properly compute fp/mode for scalar ops for vectorizer costing

2025-07-10 Thread Jan Hubicka
> The x86 add_stmt_hook relies on the passed vectype to determine > the mode and whether it is FP for a scalar operation. This is > unreliable now for stmts involving patterns and in the future when > there is no vector type passed for scalar operations. > > To be least disruptive I've kept using

[PATCH] [x86] properly compute fp/mode for scalar ops for vectorizer costing

2025-07-10 Thread Richard Biener
The x86 add_stmt_hook relies on the passed vectype to determine the mode and whether it is FP for a scalar operation. This is unreliable now for stmts involving patterns and in the future when there is no vector type passed for scalar operations. To be least disruptive I've kept using the vector