re PR tree-optimization/69047 (memcpy is not as optimized as union is)
authorRichard Biener <rguenther@suse.de>
Fri, 26 Aug 2016 12:33:43 +0000 (12:33 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 26 Aug 2016 12:33:43 +0000 (12:33 +0000)
commitebfa15ab654738fcc926a506b3788a303958fa02
tree36a9fb525064b262301c1f5214a7264dd4b939f2
parent52066eae5d3dd6b7c0a1b843469582dbdbb941eb
re PR tree-optimization/69047 (memcpy is not as optimized as union is)

2016-08-26  Richard Biener  <rguenther@suse.de>

PR tree-optimization/69047
* tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
extracts similar to what FRE does.
(non_rewritable_mem_ref_base): Likewise.

* gcc.dg/pr69047.c: New testcase.

From-SVN: r239778
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/pr69047.c [new file with mode: 0644]
gcc/tree-ssa.c