https://gcc.gnu.org/bugzilla/show_bug.cgi?id=118628
--- Comment #4 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Jakub Jelinek <ja...@gcc.gnu.org>: https://gcc.gnu.org/g:8f6dd185d16dec8ca9351a754f0ece153f89d85c commit r15-7166-g8f6dd185d16dec8ca9351a754f0ece153f89d85c Author: Jakub Jelinek <ja...@redhat.com> Date: Thu Jan 23 20:03:36 2025 +0100 vect: Avoid copying of uninitialized variable [PR118628] vectorizable_{store,load} does roughly tree offvar; tree running_off; if (!costing_p) { ... initialize offvar ... } running_off = offvar; for (...) { if (costing_p) { ... continue; } ... use running_off ... } so, it copies unconditionally sometimes uninitialized variable (but then uses the copied variable only if it was set to something initialized). Still, I think it is better to avoid copying around maybe uninitialized vars. 2025-01-23 Jakub Jelinek <ja...@redhat.com> PR tree-optimization/118628 * tree-vect-stmts.cc (vectorizable_store, vectorizable_load): Initialize offvar to NULL_TREE.