https://gcc.gnu.org/bugzilla/show_bug.cgi?id=126569
--- Comment #2 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The trunk branch has been updated by Andrea Pinski <[email protected]>: https://gcc.gnu.org/g:c42241d2de04ce75550649ed3dca7ff1549c3343 commit r17-2882-gc42241d2de04ce75550649ed3dca7ff1549c3343 Author: Andrea Pinski <[email protected]> Date: Sat Aug 1 17:58:48 2026 -0700 cselim: Fix cond_store_replacement_limited for clobbers [PR126569] cond_store_replacement_limited mistaken a clobber for a store, meaning that it would use {CLOBBER(eos)} as a phi argument. So this fixes that issue by rejecting that case. Pushed as obvious after bootstrap/test on x86_64-linux-gnu. PR tree-optimization/126569 gcc/ChangeLog: * tree-ssa-phiopt.cc (cond_store_replacement_limited): A clobber is not a store. gcc/testsuite/ChangeLog: * gcc.dg/pr126569-1.c: New test. Signed-off-by: Andrea Pinski <[email protected]>
