aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Hubicka <hubicka@ucw.cz>2021-08-23 16:16:25 +0200
committerJan Hubicka <hubicka@ucw.cz>2021-08-23 16:16:25 +0200
commit5bd4ab91660c8f5534c46979d4846a4f1a0972b0 (patch)
tree08b8aeefa0a13d4df700b904486e43e5c4167586
parentda6ce351069bda74d814b723934008d75bd4e8b0 (diff)
downloadgcc-5bd4ab91660c8f5534c46979d4846a4f1a0972b0.zip
gcc-5bd4ab91660c8f5534c46979d4846a4f1a0972b0.tar.gz
gcc-5bd4ab91660c8f5534c46979d4846a4f1a0972b0.tar.bz2
Fix previous ipa-modref patch
gcc/ChangeLog: PR middle-end/101949 * ipa-modref.c (analyze_ssa_name_flags): Fix merging of EAF_NOCLOBBER
-rw-r--r--gcc/ipa-modref.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index cb0a314..6ab687a 100644
--- a/gcc/ipa-modref.c
+++ b/gcc/ipa-modref.c
@@ -1707,7 +1707,7 @@ analyze_ssa_name_flags (tree name, vec<modref_lattice> &lattice, int depth,
is on since that would allow propagation of this from -fno-ipa-pta
to -fipa-pta functions. */
if (gimple_call_fn (use_stmt) == name)
- lattice[index].merge (~EAF_NOCLOBBER);
+ lattice[index].merge (~(EAF_NOCLOBBER | EAF_UNUSED));
/* Recursion would require bit of propagation; give up for now. */
if (callee && !ipa && recursive_call_p (current_function_decl,