public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/38513]  New: Only postreload will remove a no-op store
@ 2008-12-13  2:36 pinskia at gcc dot gnu dot org
  2008-12-13  2:37 ` [Bug tree-optimization/38513] " pinskia at gcc dot gnu dot org
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2008-12-13  2:36 UTC (permalink / raw)
  To: gcc-bugs

Take:
struct f{
float a;
float b;
float c;
float d;
};

struct f a;

void h(float, float, float, float);

void g(void)
{
  float a1 = a.a, b = a.b, c = a.c, d = a.d;
  a.a = a1;
  a.b = b;
  a.c = c;
  a.d = d;
  h(a1, b, c, d);
}
--- CUT ---
Currently only postreload will remove the store back to a.a, a.b, a.c, and a.d.
 Note this code orginally came from inlined code and was just reduced to this.
And if this was done before postreload, we don't need a fmr which was produced
by the register allocator.


-- 
           Summary: Only postreload will remove a no-op store
           Product: gcc
           Version: 4.4.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: pinskia at gcc dot gnu dot org


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


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

end of thread, other threads:[~2009-03-28 10:12 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-13  2:36 [Bug tree-optimization/38513] New: Only postreload will remove a no-op store pinskia at gcc dot gnu dot org
2008-12-13  2:37 ` [Bug tree-optimization/38513] " pinskia at gcc dot gnu dot org
2008-12-13  2:39 ` pinskia at gcc dot gnu dot org
2008-12-29 18:23 ` rguenth at gcc dot gnu dot org
2008-12-29 19:24 ` rguenth at gcc dot gnu dot org
2008-12-29 19:38 ` pinskia at gcc dot gnu dot org
2008-12-29 19:39 ` pinskia at gcc dot gnu dot org
2008-12-29 19:40 ` pinskia at gcc dot gnu dot org
2009-03-28 10:11 ` rguenth at gcc dot gnu dot org
2009-03-28 10:12 ` rguenth at gcc dot gnu dot 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).