[Patch SRA] Fix PR66119 by calling get_move_ratio in SRA
authorJames Greenhalgh <james.greenhalgh@arm.com>
Fri, 3 Jul 2015 09:25:54 +0000 (09:25 +0000)
committerJames Greenhalgh <jgreenhalgh@gcc.gnu.org>
Fri, 3 Jul 2015 09:25:54 +0000 (09:25 +0000)
commit7bd6f24be2ff057f6e59788a497e206e46e47735
tree41d9cf4bc629104c82fe2278fa51e0576bead17e
parentbab73f11b8eb01e137ac86ca232c3058175de877
[Patch SRA] Fix PR66119 by calling get_move_ratio in SRA

gcc/

PR tree-optimization/66119
* toplev.c (process_options): Don't set up default values for
the sra_max_scalarization_size_{speed,size} parameters.
* tree-sra (analyze_all_variable_accesses): If no values
have been set for the sra_max_scalarization_size_{speed,size}
parameters, call get_move_ratio to get target defaults.

gcc/testsuite/

PR tree-optimization/66119
* g++.dg/opt/pr66119.C: New.

From-SVN: r225369
gcc/ChangeLog
gcc/testsuite/ChangeLog
gcc/testsuite/g++.dg/opt/pr66119.C [new file with mode: 0644]
gcc/toplev.c
gcc/tree-sra.c