Add -fipa-cp-alignment
authorhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Feb 2015 21:25:56 +0000 (21:25 +0000)
committerhjl <hjl@138bc75d-0d04-0410-961f-82ee72b054a4>
Tue, 17 Feb 2015 21:25:56 +0000 (21:25 +0000)
commit7715e0c8c5610e9c57062cd14097049b0736d71f
treed04bf3e89fcf482728834b7a88ea6c6667b145fa
parentfdee3e8a78f2a903f46b21b2547b028adf3f576a
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.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@220773 138bc75d-0d04-0410-961f-82ee72b054a4
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]