https://gcc.gnu.org/bugzilla/show_bug.cgi?id=108752
--- Comment #4 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:821ef93976e750c118d42a2ad33b96dbd1b9f3a5 commit r14-322-g821ef93976e750c118d42a2ad33b96dbd1b9f3a5 Author: Richard Biener <rguent...@suse.de> Date: Fri Feb 10 13:09:10 2023 +0100 tree-optimization/108752 - vectorize emulated vectors in lowered form The following makes sure to emit operations lowered to bit operations when vectorizing using emulated vectors. This avoids relying on the vector lowering pass adhering to the exact same cost considerations as the vectorizer. PR tree-optimization/108752 * tree-vect-generic.cc (build_replicated_const): Rename to build_replicated_int_cst and move to tree.{h,cc}. (do_plus_minus): Adjust. (do_negate): Likewise. * tree-vect-stmts.cc (vectorizable_operation): Emit emulated arithmetic vector operations in lowered form. * tree.h (build_replicated_int_cst): Declare. * tree.cc (build_replicated_int_cst): Moved from tree-vect-generic.cc build_replicated_const.