public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/33158]  New: missed store sinking opportunity
@ 2007-08-23 10:27 bonzini at gnu dot org
  2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: bonzini at gnu dot org @ 2007-08-23 10:27 UTC (permalink / raw)
  To: gcc-bugs

In gcc.target/i386/cmov4.c no store sinking is performed for this code

  for (i = 0; i < ARCHnodes; i++) {
    nodekind[i] = (int) nodekindf[i];
    if (nodekind[i] == 3)
      nodekind[i] = 1;
  }

I would expect it to be rewritten as

  for (i = 0; i < ARCHnodes; i++) {
    int x = (int) nodekindf[i];
    if (x == 3)
      x = 1;
    nodekind[i] = x;
  }


-- 
           Summary: missed store sinking opportunity
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: tree-optimization
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: bonzini at gnu dot org
OtherBugsDependingO 33157
             nThis:


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


^ permalink raw reply	[flat|nested] 6+ messages in thread
[parent not found: <bug-33158-4@http.gcc.gnu.org/bugzilla/>]

end of thread, other threads:[~2023-05-06 18:37 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-23 10:27 [Bug tree-optimization/33158] New: missed store sinking opportunity bonzini at gnu dot org
2007-08-23 10:27 ` [Bug tree-optimization/33158] " bonzini at gnu dot org
2007-08-24 12:44 ` rguenth at gcc dot gnu dot org
2007-08-24 14:54 ` paolo dot bonzini at lu dot unisi dot ch
     [not found] <bug-33158-4@http.gcc.gnu.org/bugzilla/>
2012-02-07 21:08 ` pinskia at gcc dot gnu.org
2023-05-06 18:37 ` pinskia 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).