https://gcc.gnu.org/bugzilla/show_bug.cgi?id=121488
--- Comment #4 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:f2a85db9eee7d761692ca8f69ea1a20d32715bad commit r16-3131-gf2a85db9eee7d761692ca8f69ea1a20d32715bad Author: Richard Biener <rguent...@suse.de> Date: Mon Aug 11 09:42:09 2025 +0200 tree-optimization/121488 - improve BIT_FIELD_REF lookup in VN When a BIT_FIELD_REF lookup combined with a defining load RHS results in a wrongly typed result, try looking up or inserting a VIEW_CONVERT_EXPR to the desired type. PR tree-optimization/121488 * tree-ssa-sccvn.cc (visit_nary_op): If the BIT_FIELD_REF result is of wrong type, try a VIEW_CONVERT_EXPR around it. * gcc.dg/tree-ssa/ssa-fre-108.c: New testcase.