]> 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 10:38:26 +0000 (12:38 +0200)
commit16d2d177ac11b4d968d0ec7df9602b3f4059583d
treefca68d760d45564c20aa37b164b8bf1203ad9495
parentbf4a5efa80ef8438deb0a99c9a02b1f550aaf814
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]