This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass
- From: "ubizjak at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 1 Dec 2008 18:26:33 -0000
- Subject: [Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass
- References: <bug-37364-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #30 from ubizjak at gmail dot com 2008-12-01 18:26 -------
(In reply to comment #29)
> Other compilers do this kind of transformation via reverse copy propagation.
> GCC could perhaps add something like that too, when it transforms a 3-address
> insn to a 2-address insn.
Will this also solve PR 19398, where we have:
fstps -4(%ebp)
(*) movss -4(%ebp), %xmm0
(*) cvttss2si %xmm0, %eax
leave
Note, that we could simply have:
cvttss2si -4(%ebp), %eax
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37364