]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Fix previous ipa-modref patch
authorJan Hubicka <hubicka@ucw.cz>
Mon, 23 Aug 2021 14:16:25 +0000 (16:16 +0200)
committerJan Hubicka <hubicka@ucw.cz>
Mon, 23 Aug 2021 14:16:25 +0000 (16:16 +0200)
gcc/ChangeLog:

PR middle-end/101949
* ipa-modref.c (analyze_ssa_name_flags): Fix merging of
EAF_NOCLOBBER

gcc/ipa-modref.c

index cb0a314cbeb3c6bbd5768ad1bf7d4e7a4ace1665..6ab687a7ba05f97f6a58cbb60f884cbf5aaaff2b 100644 (file)
@@ -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,