public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug rtl-optimization/56339] New: [4.8 Regression]: Suboptimal register allocation
@ 2013-02-15  8:53 ubizjak at gmail dot com
  2013-02-15  9:20 ` [Bug rtl-optimization/56339] " rguenth at gcc dot gnu.org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: ubizjak at gmail dot com @ 2013-02-15  8:53 UTC (permalink / raw)
  To: gcc-bugs


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56339

             Bug #: 56339
           Summary: [4.8 Regression]: Suboptimal register allocation
    Classification: Unclassified
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Keywords: ra
          Severity: normal
          Priority: P3
         Component: rtl-optimization
        AssignedTo: unassigned@gcc.gnu.org
        ReportedBy: ubizjak@gmail.com
                CC: vmakarov@gcc.gnu.org


Split out from PR55941.

The testcase from referred PR

--cut here--
typedef struct A { double a, b; } A;
double f(A x,double y){return x.a+y;}
--cut here--

compiles to (-O2):

f:
        addsd   %xmm0, %xmm2
        movapd  %xmm2, %xmm0
        ret

gcc-4.7 generates:

f:
        addsd   %xmm2, %xmm0
        ret

LRA does not take into account commutative operands here.


^ permalink raw reply	[flat|nested] 23+ messages in thread

end of thread, other threads:[~2015-06-23  8:40 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-15  8:53 [Bug rtl-optimization/56339] New: [4.8 Regression]: Suboptimal register allocation ubizjak at gmail dot com
2013-02-15  9:20 ` [Bug rtl-optimization/56339] " rguenth at gcc dot gnu.org
2013-02-15  9:52 ` steven at gcc dot gnu.org
2013-02-15  9:52 ` steven at gcc dot gnu.org
2013-02-15 10:00 ` steven at gcc dot gnu.org
2013-02-15 10:17 ` steven at gcc dot gnu.org
2013-02-15 10:21 ` steven at gcc dot gnu.org
2013-02-15 16:48 ` vmakarov at gcc dot gnu.org
2013-03-08 15:40 ` rguenth at gcc dot gnu.org
2013-03-08 15:51 ` ubizjak at gmail dot com
2013-03-08 18:49 ` steven at gcc dot gnu.org
2013-03-08 19:47 ` jakub at gcc dot gnu.org
2013-03-11 10:46 ` rguenth at gcc dot gnu.org
2013-03-11 11:49 ` ubizjak at gmail dot com
2013-03-11 11:58 ` jakub at gcc dot gnu.org
2013-03-22 14:43 ` [Bug rtl-optimization/56339] [4.8/4.9 " jakub at gcc dot gnu.org
2013-05-31 10:58 ` jakub at gcc dot gnu.org
2013-10-16  9:48 ` jakub at gcc dot gnu.org
2013-11-26 20:24 ` vmakarov at gcc dot gnu.org
2013-12-12 18:09 ` [Bug rtl-optimization/56339] [4.8 " ubizjak at gmail dot com
2014-05-22  9:03 ` rguenth at gcc dot gnu.org
2014-12-19 13:36 ` jakub at gcc dot gnu.org
2015-06-23  8:43 ` rguenth at gcc dot gnu.org

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).