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)
commit67bfbda18f4e6d0d30ad8f8790f1d0d4653131ed
tree9716bd9ff2461345f0588f149f875f1fd3c9714b
parent4acca1c0635dfa43cd8c4bfe2b22e17909fc23a3
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  <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