]> git.ipfire.org Git - thirdparty/gcc.git/commit
Fix small thinko in IPA mod/ref pass
authorEric Botcazou <ebotcazou@adacore.com>
Fri, 20 Sep 2024 10:32:13 +0000 (12:32 +0200)
committerEric Botcazou <ebotcazou@adacore.com>
Fri, 20 Sep 2024 12:15:23 +0000 (14:15 +0200)
commitadab597af288d6e1e0b7c3414517147995b03cc9
treefb2e75bef703c94d41434455773ad11cc2adfb57
parentbff6e5667d6a8bf8060e550bdcb40e094d00af41
Fix small thinko in IPA mod/ref pass

When a memory copy operation is analyzed by analyze_ssa_name, if both the
load and store are made through the same SSA name, the store is overlooked.

gcc/
* ipa-modref.cc (modref_eaf_analysis::analyze_ssa_name): Always
process both the load and the store of a memory copy operation.

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