This patch unsets -freorder-blocks-and-partition when -fprofile-use
authortejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Sep 2015 16:53:40 +0000 (16:53 +0000)
committertejohnson <tejohnson@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 25 Sep 2015 16:53:40 +0000 (16:53 +0000)
commita83df7d68c8fe3794a847303e981f7f0f48b358b
tree0929635a605ef836dda743b622ad63f002335dba
parent63e26b218b009b1cec13faa237b6e10cf347a078
This patch unsets -freorder-blocks-and-partition when -fprofile-use
is not specified. Function splitting was not actually being performed
in that case, as probably_never_executed_bb_p does not distinguish
any basic blocks as being cold vs hot when there is no profile data.
Leaving it enabled, however, causes the assembly code generator to create
(empty) cold sections and labels, leading to unnecessary size overhead.

2015-09-25  Teresa Johnson  <tejohnson@google.com>

* opts.c (finish_options): Unset -freorder-blocks-and-partition
if not using profile.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228136 138bc75d-0d04-0410-961f-82ee72b054a4
gcc/ChangeLog
gcc/opts.c