https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115278
--- Comment #9 from GCC 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:65dbe0ab7cdaf2aa84b09a74e594f0faacf1945c commit r15-941-g65dbe0ab7cdaf2aa84b09a74e594f0faacf1945c Author: Richard Biener <rguent...@suse.de> Date: Fri May 31 10:14:25 2024 +0200 tree-optimization/115278 - fix DSE in if-conversion wrt volatiles The following adds the missing guard for volatile stores to the embedded DSE in the loop if-conversion pass. PR tree-optimization/115278 * tree-if-conv.cc (ifcvt_local_dce): Do not DSE volatile stores. * g++.dg/vect/pr115278.cc: New testcase.