This is the mail archive of the gcc-bugs@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug c/13355] New: Suboptimal code generated


Attached .c file generates quite suboptimal code with tree-ssa including
* excessive stack slot usage
* moving data from a reg to a stack slot and then immediately moving it back to    
  the same reg
* cltd does not modify EAX so the XOR of eax after that instruction with the
previously-saved value is guaranteed to yield 0 so redundant

-- 
           Summary: Suboptimal code generated
           Product: gcc
           Version: tree-ssa
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: c
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: arjanv at redhat dot com
                CC: dnovillo at redhat dot com,gcc-bugs at gcc dot gnu dot
                    org
 GCC build triplet: i686-redhat-linux
  GCC host triplet: i686-redhat-linux
GCC target triplet: i686-redhat-linux


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]