https://gcc.gnu.org/bugzilla/show_bug.cgi?id=123416
--- Comment #6 from GCC Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Richard Biener <[email protected]>: https://gcc.gnu.org/g:576dd2f7ef0dbc30b460176442e63b08c642676c commit r16-7255-g576dd2f7ef0dbc30b460176442e63b08c642676c Author: Richard Biener <[email protected]> Date: Tue Feb 3 09:26:01 2026 +0100 ipa/123416 - fix IPA modref summary merging after inlining There's a typo in the condition skipping load collapsing when there's no callee modref summary. We do have to collapse loads for the destination iff the callee performs any loads which includes when the callee is ECF_PURE. The LTO summary part already gets this correct. PR ipa/123416 * ipa-modref.cc (ipa_merge_modref_summary_after_inlining): Fix typo in condtion for load merging when no callee summary. * gcc.dg/torture/pr123416.c: New testcase.
