Fix previous ipa-modref patch

gcc/ChangeLog:

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

(cherry picked from commit 5bd4ab9166)
This commit is contained in:
Jan Hubicka 2021-08-23 16:16:25 +02:00 committed by Martin Liska
parent d0adc557a2
commit e527b92b18

View 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. */