This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH GCC/ARM]Disable "-fira-hoist-pressure" on Thumb2


Hi,
For now the option "-fira-hoist-pressure" is enabled for all targets, but I
monitored performance regression with Os on thumb2 for some cases.
Considering that optimization has small improvement on thumb2 for code size,
here comes this patch disabling it on Thumb2 and modifying the corresponding
test cases.

Tested on arm-none-eabi/M3, is it OK?

Thanks.
bin

2013-04-25  Bin Cheng  <bin.cheng@arm.com>

	* common.opt (flag_ira_hoist_pressure): Initialize to 2.
	* doc/invoke.texi (-fira-hoist-pressure): Disabled by default
	on Thumb2 instruction set.
	* config/arm/arm.c (arm_option_override): Disable option
	-fira-hoist-pressure on Thumb2 by default.

2013-04-25  Bin Cheng  <bin.cheng@arm.com>

	* gcc.dg/hoist-register-pressure-1.c: Add -fira-hoist-pressure
option.
	* gcc.dg/hoist-register-pressure-2.c: Ditto.
	* gcc.dg/hoist-register-pressure-3.c: Ditto.

Attachment: disable-reg-pressure-hoist-thumb2-20130425.txt
Description: Text document


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]