re PR middle-end/80262 (address space gets lost in memory access)
authorRichard Biener <rguenther@suse.de>
Thu, 6 Apr 2017 12:31:05 +0000 (12:31 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Thu, 6 Apr 2017 12:31:05 +0000 (12:31 +0000)
commit0f78434635f6e78cae50408a8bb76c35658551d4
tree71e473dcdaf525f910f75285eed39cb0ba9aa850
parent23a429c2b285953c026bfd01ded764e3b16eb1a8
re PR middle-end/80262 (address space gets lost in memory access)

2017-04-06  Richard Biener  <rguenther@suse.de>

PR tree-optimization/80262
* tree-sra.c (build_ref_for_offset): Preserve address-space
information.
* tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
Drop useless address-space information on MEM_REF offsets.

* gcc.target/i386/pr80262.c: New testcase.

From-SVN: r246728
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.target/i386/pr80262.c [new file with mode: 0644]
gcc/tree-sra.c
gcc/tree-ssa-sccvn.c