https://gcc.gnu.org/bugzilla/show_bug.cgi?id=112843
--- Comment #11 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:52f8092f54cf338c19d44e06b35612d15c96faf4 commit r14-6206-g52f8092f54cf338c19d44e06b35612d15c96faf4 Author: Richard Biener <rguent...@suse.de> Date: Tue Dec 5 09:21:35 2023 +0100 tree-optimization/112843 - update_stmt doing wrong things The following removes range_query::update_stmt and its single invocation from update_stmt_operands. That function is not supposed to look beyond the raw stmt contents of the passed stmt since there's no guarantee about the rest of the IL. PR tree-optimization/112843 * tree-ssa-operands.cc (update_stmt_operands): Do not call update_stmt from ranger. * value-query.h (range_query::update_stmt): Remove. * gimple-range.h (gimple_ranger::update_stmt): Likewise. * gimple-range.cc (gimple_ranger::update_stmt): Likewise.