From 67bfbda18f4e6d0d30ad8f8790f1d0d4653131ed Mon Sep 17 00:00:00 2001 From: Richard Biener Date: Mon, 25 May 2020 13:48:57 +0200 Subject: [PATCH] tree-optimization/95308 - really avoid forward propagating of &TMR This fixes a hole that still allowed forwarding of TARGET_MEM_REF addresses. 2020-05-25 Richard Biener PR tree-optimization/95308 * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize test for TARGET_MEM_REFs. * g++.dg/torture/pr95308.C: New testcase. --- gcc/ChangeLog | 6 ++++++ gcc/testsuite/ChangeLog | 5 +++++ 2 files changed, 11 insertions(+) diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 150dc09..d584459 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,5 +1,11 @@ 2020-05-25 Richard Biener + PR tree-optimization/95308 + * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize + test for TARGET_MEM_REFs. + +2020-05-25 Richard Biener + PR tree-optimization/95295 * tree-ssa-loop-im.c (sm_seq_valid_bb): Compare remat stores RHSes and drop to full sm_other if they are not equal. diff --git a/gcc/testsuite/ChangeLog b/gcc/testsuite/ChangeLog index cba153f..dfb92ec 100644 --- a/gcc/testsuite/ChangeLog +++ b/gcc/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2020-05-25 Richard Biener + PR tree-optimization/95308 + * g++.dg/torture/pr95308.C: New testcase. + +2020-05-25 Richard Biener + PR tree-optimization/95295 * gcc.dg/torture/pr95295-1.c: New testcase. * gcc.dg/torture/pr95295-2.c: Likewise. -- 2.7.4