[Bug target/37364] [4.4 Regression] IRA generates inefficient code due to missing regmove pass

ubizjak at gmail dot com gcc-bugzilla@gcc.gnu.org
Mon Dec 1 18:27:00 GMT 2008



------- 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



More information about the Gcc-bugs mailing list