Commit 263ee126 by Richard Biener

tree-optimization/94266 - aovid propagating addresses of TARGET_MEM_REFs

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.
 Please enter the commit message for your changes. Lines starting
parent 2fa4b1ff
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.
2020-03-23 Martin Liska <mliska@suse.cz>
PR ipa/94250
......
......@@ -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))
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment