Introduce flag_cunroll_grow_size for cunroll
authorguojiufu <guojiufu@linux.ibm.com>
Thu, 28 May 2020 05:42:23 +0000 (13:42 +0800)
committerguojiufu <guojiufu@linux.ibm.com>
Sun, 7 Jun 2020 09:35:01 +0000 (17:35 +0800)
commit71489d8e7572388c6e9528a45e4942b7c7b67e4f
treea4b5cb277348fe0df2f53f9ab0de532dd4ad8d9d
parent905ba62ec96f8469c1085861d9ceec58fbee5709
Introduce flag_cunroll_grow_size for cunroll

Currently GIMPLE complete unroller(cunroll) is checking
flag_unroll_loops and flag_peel_loops to see if allow size growth.
Beside affects curnoll, flag_unroll_loops also controls RTL unroler.
To have more freedom to control cunroll and RTL unroller, this patch
introduces flag_cunroll_grow_size.  With this patch, we can control
cunroll and RTL unroller indepently.

gcc/ChangeLog
2020-06-07  Jiufu Guo  <guojiufu@linux.ibm.com>

* common.opt (flag_cunroll_grow_size): New flag.
* toplev.c (process_options): Set flag_cunroll_grow_size.
* tree-ssa-loop-ivcanon.c (pass_complete_unroll::execute):
Use flag_cunroll_grow_size.
gcc/common.opt
gcc/toplev.c
gcc/tree-ssa-loop-ivcanon.c