]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix modref's iteraction with store merging
authorJan Hubicka <hubicka@ucw.cz>
Mon, 22 Jul 2024 17:00:39 +0000 (19:00 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Mon, 22 Jul 2024 17:01:05 +0000 (19:01 +0200)
commit14074773350ffed7efdebbc553adf0f23b572e87
treef20e7a7f9cdf522cc4b083425429fd6536ae8f8a
parent05f0e9eec9f9beeffe024ecd6566b41200d79cff
Fix modref's iteraction with store merging

Hi,
this patch fixes wrong code in case store-merging introduces load of function
parameter that was previously write-only (which happens for bitfields).
Without this, the whole store-merged area is consdered to be killed.

PR ipa/111613

gcc/ChangeLog:

* ipa-modref.cc (analyze_parms): Do not preserve EAF_NO_DIRECT_READ and
EAF_NO_INDIRECT_READ from past flags.

gcc/testsuite/ChangeLog:

* gcc.c-torture/pr111613.c: New test.
gcc/ipa-modref.cc
gcc/testsuite/gcc.c-torture/pr111613.c [new file with mode: 0644]