https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115149
--- Comment #5 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The releases/gcc-14 branch has been updated by Richard Biener <rgue...@gcc.gnu.org>: https://gcc.gnu.org/g:90a447677a2abb934b683a012b477e6c52088e35 commit r14-10257-g90a447677a2abb934b683a012b477e6c52088e35 Author: Richard Biener <rguent...@suse.de> Date: Tue May 21 09:48:04 2024 +0200 tree-optimization/115149 - VOP live and missing PHIs The following fixes a bug in vop-live get_live_in which was using NULL to indicate the first processed edge but at the same time using it for the case the live-in virtual operand cannot be computed. The following fixes this, avoiding sinking a load to a place where we'd have to insert virtual PHIs to make the virtual operand SSA web OK. PR tree-optimization/115149 * tree-ssa-live.cc (virtual_operand_live::get_live_in): Explicitly track the first processed edge. * gcc.dg/pr115149.c: New testcase. (cherry picked from commit ec9b8bafe20755d13ab9a1b834b5da79ae972c0e)