Re: [PATCH 1/3] tree-optimization/104582 - Simplify vectorizer cost API and fixes

2022-02-21 Thread Richard Sandiford via Gcc-patches
Richard Biener writes: > This simplifies the vectorizer cost API by providing overloads > to add_stmt_cost and record_stmt_cost suitable for scalar stmt > and branch stmt costing which do not need information like > a vector type or alignment. It also fixes two mistakes where > costs for versioni

[PATCH 1/3] tree-optimization/104582 - Simplify vectorizer cost API and fixes

2022-02-18 Thread Richard Biener via Gcc-patches
This simplifies the vectorizer cost API by providing overloads to add_stmt_cost and record_stmt_cost suitable for scalar stmt and branch stmt costing which do not need information like a vector type or alignment. It also fixes two mistakes where costs for versioning tests were recorded as vector s