Commit c201ac94 by Tom de Vries Committed by Tom de Vries

re PR target/43920 (Choosing conditional execution over conditional branches for…

re PR target/43920 (Choosing conditional execution over conditional branches for code size in some cases.)

2011-04-05  Tom de Vries  <tom@codesourcery.com>

	PR target/43920
	* config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
	for size.

From-SVN: r171978
parent 4c029f40
2011-04-05 Tom de Vries <tom@codesourcery.com> 2011-04-05 Tom de Vries <tom@codesourcery.com>
PR target/43920 PR target/43920
* config/arm/arm.h (BRANCH_COST): Set to 1 for Thumb-2 when optimizing
for size.
2011-04-05 Tom de Vries <tom@codesourcery.com>
PR target/43920
* function.c (emit_use_return_register_into_block): New function. * function.c (emit_use_return_register_into_block): New function.
(thread_prologue_and_epilogue_insns): Use (thread_prologue_and_epilogue_insns): Use
emit_use_return_register_into_block. emit_use_return_register_into_block.
......
...@@ -2019,7 +2019,8 @@ typedef struct ...@@ -2019,7 +2019,8 @@ typedef struct
/* Try to generate sequences that don't involve branches, we can then use /* Try to generate sequences that don't involve branches, we can then use
conditional instructions */ conditional instructions */
#define BRANCH_COST(speed_p, predictable_p) \ #define BRANCH_COST(speed_p, predictable_p) \
(TARGET_32BIT ? 4 : (optimize > 0 ? 2 : 0)) (TARGET_32BIT ? (TARGET_THUMB2 && !speed_p ? 1 : 4) \
: (optimize > 0 ? 2 : 0))
/* Position Independent Code. */ /* Position Independent Code. */
/* We decide which register to use based on the compilation options and /* We decide which register to use based on the compilation options and
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment