This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug other/17108] Missed opportunity for strength reduction
- From: "nathan at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 3 Nov 2004 11:25:52 -0000
- Subject: [Bug other/17108] Missed opportunity for strength reduction
- References: <20040819145911.17108.steinmtz@us.ibm.com>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From nathan at gcc dot gnu dot org 2004-11-03 11:25 -------
The situation has improved, as the biv has now been spotted, and the loop
turned into,
.foo:
li 0,8
mtctr 0
.align 4
.L2:
stfs 1,0(3)
addi 3,3,4
bdnz .L2
blr
Unfortunately this has placed the increment after the load, and so
cannot be merged into it. If the loop optimizer knew the target had
pre-inc, it might be able to swap them round by biasing the pointer
before the loop.
--
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|nathan at gcc dot gnu dot |unassigned at gcc dot gnu
|org |dot org
Status|ASSIGNED |NEW
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17108