re PR tree-optimization/64410 (gcc 25% slower than clang 3.5 for adding complex numbers)
authorRichard Biener <rguenther@suse.de>
Fri, 9 Jan 2015 11:14:55 +0000 (11:14 +0000)
committerRichard Biener <rguenth@gcc.gnu.org>
Fri, 9 Jan 2015 11:14:55 +0000 (11:14 +0000)
commit2f2782497acb6efa025c1f832a37a0afeb3925f7
tree03add0605b49b2b5c0f9393c96db9dfd878e15e2
parent520b30221300436cbc178a4110123c12ad3ee0ee
re PR tree-optimization/64410 (gcc 25% slower than clang 3.5 for adding complex numbers)

2015-01-09  Richard Biener  <rguenther@suse.de>

PR tree-optimization/64410
* tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
on the LHS.
(execute_update_addresses_taken): Deal with that.
* tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
loads/stores for complex variables.

* g++.dg/vect/pr64410.cc: New testcase.

From-SVN: r219380
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/vect/pr64410.cc [new file with mode: 0644]
gcc/tree-ssa-forwprop.c
gcc/tree-ssa.c