public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-3083] Fix previous ipa-modref patch
@ 2021-08-23 14:17 Jan Hubicka
  0 siblings, 0 replies; only message in thread
From: Jan Hubicka @ 2021-08-23 14:17 UTC (permalink / raw)
  To: gcc-cvs

https://gcc.gnu.org/g:5bd4ab91660c8f5534c46979d4846a4f1a0972b0

commit r12-3083-g5bd4ab91660c8f5534c46979d4846a4f1a0972b0
Author: Jan Hubicka <hubicka@ucw.cz>
Date:   Mon Aug 23 16:16:25 2021 +0200

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

Diff:
---
 gcc/ipa-modref.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/gcc/ipa-modref.c b/gcc/ipa-modref.c
index cb0a314cbeb..6ab687a7ba0 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,


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-08-23 14:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-23 14:17 [gcc r12-3083] Fix previous ipa-modref patch Jan Hubicka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).