Add -fipa-cp-alignment
authorH.J. Lu <hongjiu.lu@intel.com>
Tue, 17 Feb 2015 21:25:56 +0000 (21:25 +0000)
committerH.J. Lu <hjl@gcc.gnu.org>
Tue, 17 Feb 2015 21:25:56 +0000 (13:25 -0800)
commit3c99176a7f968bdb8b7a3225265246f643551c80
treed04bf3e89fcf482728834b7a88ea6c6667b145fa
parentd420206ea581d85273f6d05280e658d3fdab604e
Add -fipa-cp-alignment

This patch adds -fipa-cp-alignment to provide a way to enable/disable
alignment discovery and propagation in IPA-CP.

gcc/

* common.opt (fipa-cp-alignment): New.
* ipa-cp.c (ipcp_store_alignment_results): Check
flag_ipa_cp_alignment.
* opts.c (default_options_table): Enable -fipa-cp-alignment for
-O2.
(enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
* doc/invoke.texi: Document -fipa-cp-alignment.

gcc/testsuite/

* gcc.dg/ipa/propalign-3.c: New test.

From-SVN: r220773
gcc/ChangeLog
gcc/common.opt
gcc/doc/invoke.texi
gcc/ipa-cp.c
gcc/opts.c
gcc/testsuite/ChangeLog
gcc/testsuite/gcc.dg/ipa/propalign-3.c [new file with mode: 0644]