]> git.ipfire.org Git - thirdparty/gcc.git/commit
rs6000: allow cunroll to grow size according to -funroll-loop or -fpeel-loops
authorguojiufu <guojiufu@linux.ibm.com>
Thu, 28 May 2020 06:10:39 +0000 (14:10 +0800)
committerguojiufu <guojiufu@linux.ibm.com>
Sun, 7 Jun 2020 09:35:01 +0000 (17:35 +0800)
commit557a40f599f64e40cc1b20254bf82acc775375f5
treea32cdb789ddf90ae978852b305e81673e7af5951
parent71489d8e7572388c6e9528a45e4942b7c7b67e4f
rs6000: allow cunroll to grow size according to -funroll-loop or -fpeel-loops

Previously, flag_unroll_loops was turned on at -O2 implicitly.  This
also turned on cunroll with allowance size increasing, and cunroll
will unroll/peel the loop even the loop is complex like code in PR95018.
With this patch, size growth for cunroll is allowed only for if -funroll-loops
or -fpeel-loops or -O3 is specified explicitly.

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

PR target/95018
* config/rs6000/rs6000.c (rs6000_option_override_internal):
Override flag_cunroll_grow_size.
gcc/config/rs6000/rs6000.c