This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/23488] [4.1/4.2 Regression] GCSE load PRE does not work with non sets
- 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: 18 Jan 2006 20:26:34 -0000
- Subject: [Bug middle-end/23488] [4.1/4.2 Regression] GCSE load PRE does not work with non sets
- References: <bug-23488-1008@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from pinskia at gcc dot gnu dot org 2006-01-18 20:26 -------
Hmm, we actually produce better code on the mainline for my example in comment
#2:
_xtermEnvEncoding1:
movl _result.1525, %edx
movl $2, %eax
pushl %ebp
movl %esp, %ebp
popl %ebp
testl %edx, %edx
cmovne _result.1525, %eax
movl %eax, _result.1525
ret
But that is does not fix the problem in comment #0. Load PRE on the tree level
is not working because this is not an indirect reference to the variable. That
is a known issue too.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Component|target |middle-end
GCC target triplet|i686-pc-linux.-gnu |i686-*-*
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23488