--- Comment #29 from janis at gcc dot gnu dot org 2008-10-29 17:05 ---
On powerpc-linux the submitter's testcase gets better code with the patch from
comment #17, but the same testcase with the loop starting with 1 instead of
zero gets worse code. From the 4.1 branch with -O2:
.L2:
--- Comment #25 from cnstar9988 at gmail dot com 2008-08-06 06:57 ---
ping...
Can this be fixed before 4.3.2? thanks.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29256
--- Comment #26 from rakdver at gcc dot gnu dot org 2008-08-06 21:51
---
Created an attachment (id=16036)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16036action=view)
possible fix
One place where this can be fixed is fwprop (something like the attached
patch). I am not sure
--
rakdver at gcc dot gnu dot org changed:
What|Removed |Added
CC||bonzini at gnu dot org
AssignedTo|rakdver at gcc dot gnu dot
--- Comment #27 from rakdver at gcc dot gnu dot org 2008-08-06 21:56
---
(In reply to comment #26)
Created an attachment (id=16036)
-- (http://gcc.gnu.org/bugzilla/attachment.cgi?id=16036action=view) [edit]
possible fix
One place where this can be fixed is fwprop (something like
--- Comment #28 from bonzini at gnu dot org 2008-08-07 05:01 ---
fwprop seems the right place to do that indeed.
Only thing, I wonder you need to find a location to add the constant: it
could be enough to do
*x = simplify_gen_binary (PLUS, Pmode, *x, cst_to_add);
because
--- Comment #24 from jsm28 at gcc dot gnu dot org 2008-05-19 20:22 ---
4.2.4 is being released, changing milestones to 4.2.5.
--
jsm28 at gcc dot gnu dot org changed:
What|Removed |Added