public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
* [PATCH] tree-optimization/94266 - aovid propagating addresses of TARGET_MEM_REFs
@ 2020-03-23  8:38 Richard Biener
  0 siblings, 0 replies; only message in thread
From: Richard Biener @ 2020-03-23  8:38 UTC (permalink / raw)
  To: gcc-patches


Bootstrapped on x86_64-unknown-linux-gnu, testing in progress.

Richard.

2020-03-23  Richard Biener  <rguenther@suse.de>

	PR tree-optimization/94266
	* tree-ssa-forwprop.c (pass_forwprop::execute): Do not propagate
	addresses of TARGET_MEM_REFs.
---
 gcc/tree-ssa-forwprop.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/gcc/tree-ssa-forwprop.c b/gcc/tree-ssa-forwprop.c
index 61b4eec271b..234c1f7dd7d 100644
--- a/gcc/tree-ssa-forwprop.c
+++ b/gcc/tree-ssa-forwprop.c
@@ -2712,6 +2712,7 @@ pass_forwprop::execute (function *fun)
 	      if ((!base
 		   || !DECL_P (base)
 		   || decl_address_invariant_p (base))
+		  && TREE_CODE (base) != TARGET_MEM_REF
 		  && !stmt_references_abnormal_ssa_name (stmt)
 		  && forward_propagate_addr_expr (lhs, rhs, true))
 		{
-- 
2.16.4

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

only message in thread, other threads:[~2020-03-23  8:38 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-23  8:38 [PATCH] tree-optimization/94266 - aovid propagating addresses of TARGET_MEM_REFs Richard Biener

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).