> 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. > > Bootstrap and regtest running on x86_64-unknown-linux-gnu, will push > when that succeeds. > > Richard. > > 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.
Thanks for looking into this! Honza
