]> git.ipfire.org Git - thirdparty/gcc.git/commit
ipa/123416 - fix IPA modref summary merging after inlining
authorRichard Biener <rguenther@suse.de>
Tue, 3 Feb 2026 08:26:01 +0000 (09:26 +0100)
committerRichard Biener <rguenth@gcc.gnu.org>
Tue, 3 Feb 2026 09:43:04 +0000 (10:43 +0100)
commit576dd2f7ef0dbc30b460176442e63b08c642676c
treeaae909470701280057f9bf8cbab4b8337e5d8142
parenta08ac15e8cc2c5b55a6bb1acdf279e34ebc9251e
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.
gcc/ipa-modref.cc
gcc/testsuite/gcc.dg/torture/pr123416.c [new file with mode: 0644]