This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug middle-end/37364] [4.4 Regression] IRA generates ineffient code
- From: "hjl dot tools at gmail dot com" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 4 Sep 2008 16:13:15 -0000
- Subject: [Bug middle-end/37364] [4.4 Regression] IRA generates ineffient code
- References: <bug-37364-682@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #2 from hjl dot tools at gmail dot com 2008-09-04 16:13 -------
(In reply to comment #1)
> "-O2 -march=core2 -fno-ira -fno-regmove" generates
>
> movq x(%rip), %mm0
> paddd y(%rip), %mm0
> movq %mm0, -8(%rsp)
> movq -8(%rsp), %rax
>
> It seems that regmove isn't effective for IRA.
>
regmove is turned off for IRA. Revert the regmove.c change in
revision 139590
* regmove.c (regmove_optimize): Don't do replacement of output for
IRA.
fixes this regression. Vladimir, IRA should either deal with replacement
of output or let regmove handle it.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=37364