commit | adab597af288d6e1e0b7c3414517147995b03cc9 | [log] [tgz] |
---|---|---|
author | Eric Botcazou <ebotcazou@adacore.com> | Fri Sep 20 12:32:13 2024 +0200 |
committer | Eric Botcazou <ebotcazou@adacore.com> | Fri Sep 20 14:15:23 2024 +0200 |
tree | fb2e75bef703c94d41434455773ad11cc2adfb57 | |
parent | bff6e5667d6a8bf8060e550bdcb40e094d00af41 [diff] |
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.