]> 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)
committerMartin Liska <mliska@suse.cz>
Tue, 24 Aug 2021 08:24:48 +0000 (10:24 +0200)
gcc/ChangeLog:

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

(cherry picked from commit 5bd4ab91660c8f5534c46979d4846a4f1a0972b0)

gcc/ipa-modref.c

index dc5ee8cc2d0e8c4b5142edcab10aedac8b6e67c4..80f192d9025ca23b13b42a30b64da6087ae3fcd9 100644 (file)
@@ -1628,7 +1628,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));
 
          /* Return slot optimization would require bit of propagation;
             give up for now.  */