Message ID | nycvar.YFH.7.76.2003230938180.5137@zhemvz.fhfr.qr |
---|---|
State | New |
Headers | show |
Series | tree-optimization/94266 - aovid propagating addresses of TARGET_MEM_REFs | expand |
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)) {