This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/29158] store merge optimization not done
- From: "pinskia at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 29 Nov 2006 05:26:23 -0000
- Subject: [Bug middle-end/29158] store merge optimization not done
- References: <bug-29158-12219@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #3 from pinskia at gcc dot gnu dot org 2006-11-29 05:26 -------
(In reply to comment #2)
> This hits it too. (example is PowerPC)
No it does not, look at the what it gives:
stb 11,11(3)
stb 11,0(3)
sth 0,1(3)
stw 9,7(3)
stw 9,3(3)
Reordering the stores to be in a natural order:
stb 11,0(3)
sth 0,1(3)
stw 9,3(3)
stw 9,7(3)
stb 11,11(3)
we do one byte store and then half word store and then two word stores and
finally one byte store, yes we could reagrange the stores to get three word
stores but is that really useful in this case, almost no but because of the
constant generation is going to hurt.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=29158