--- Comment #4 from ramana at gcc dot gnu dot org 2009-07-02 09:39 ---
(In reply to comment #3)
> Is there a C test case? Can you add objdump of the gcc-generated asm and the
> fixed asm to show the impact on code size? (/me is surprised that 3*"add
> r0,sp,4" is smaller than 1**"add r0
--- Comment #3 from steven at gcc dot gnu dot org 2009-07-02 09:15 ---
Is there a C test case? Can you add objdump of the gcc-generated asm and the
fixed asm to show the impact on code size? (/me is surprised that 3*"add
r0,sp,4" is smaller than 1**"add r0,sp,4"+3*"mov r0,r4"... Thumb i
--- Comment #2 from ramana at gcc dot gnu dot org 2009-07-02 08:53 ---
This looks like one of those rematerialization problems albeit with the stack
pointer this time.
--
ramana at gcc dot gnu dot org changed:
What|Removed |Added
-
--- Comment #1 from carrot at google dot com 2009-07-02 07:39 ---
Created an attachment (id=18120)
--> (http://gcc.gnu.org/bugzilla/attachment.cgi?id=18120&action=view)
test case
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=40615