tree-optimization/95308 - really avoid forward propagating of &TMR
authorRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 11:48:57 +0000 (13:48 +0200)
committerRichard Biener <rguenther@suse.de>
Mon, 25 May 2020 11:50:29 +0000 (13:50 +0200)
This fixes a hole that still allowed forwarding of TARGET_MEM_REF
addresses.

2020-05-25  Richard Biener  <rguenther@suse.de>

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
gcc/testsuite/ChangeLog

index 150dc096c7a63b0c15998e78f80a20d20d1f51bf..d5844590274d416403796a979635d192f91a5af0 100644 (file)
@@ -1,3 +1,9 @@
+2020-05-25  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/95308
+       * tree-ssa-forwprop.c (pass_forwprop::execute): Generalize
+       test for TARGET_MEM_REFs.
+
 2020-05-25  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/95295
index cba153f166e73f9076c66713a0b9055c1d89137f..dfb92ec5748a7b436c249f46d6773fa096f5096a 100644 (file)
@@ -1,3 +1,8 @@
+2020-05-25  Richard Biener  <rguenther@suse.de>
+
+       PR tree-optimization/95308
+       * g++.dg/torture/pr95308.C: New testcase.
+
 2020-05-25  Richard Biener  <rguenther@suse.de>
 
        PR tree-optimization/95295