public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30905]  New: [dataflow] Fails to cross-jump
@ 2007-02-21 10:04 rguenth at gcc dot gnu dot org
  2007-02-21 21:00 ` [Bug middle-end/30905] " steven at gcc dot gnu dot org
                   ` (21 more replies)
  0 siblings, 22 replies; 23+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-21 10:04 UTC (permalink / raw)
  To: gcc-bugs

static int a[30];
static int b[30];
int gen_int(int);
void kernel ()
{
  int i;

  i = gen_int (1);

  if (i != 0)
    {
      a[0] = a[0] + (a[0] & 3);
      b[0] = b[0] + (b[0] | 3);
    }
  else
    {
      a[0] = a[0] + (a[0] & 3);
      b[0] = b[0] + (b[0] | 3);
    }
  if (i != 1)
    {
      a[1] = a[1] + (a[1] & 3);
      b[1] = b[1] + (b[1] | 3);
    }
  else
    {
      a[1] = a[1] + (a[1] & 3);
      b[1] = b[1] + (b[1] | 3);
    }
}

is optimized by mainline to straight line code without compares and jumps at
-O2.  dataflow branch retains the comparisons with i and the duplicate
instructions.


-- 
           Summary: [dataflow] Fails to cross-jump
           Product: gcc
           Version: 4.3.0
            Status: UNCONFIRMED
          Keywords: missed-optimization
          Severity: normal
          Priority: P3
         Component: middle-end
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: rguenth at gcc dot gnu dot org


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


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

end of thread, other threads:[~2010-03-21 12:04 UTC | newest]

Thread overview: 23+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21 10:04 [Bug middle-end/30905] New: [dataflow] Fails to cross-jump rguenth at gcc dot gnu dot org
2007-02-21 21:00 ` [Bug middle-end/30905] " steven at gcc dot gnu dot org
2007-02-21 22:09 ` steven at gcc dot gnu dot org
2007-05-08 22:15 ` steven at gcc dot gnu dot org
2007-06-12 19:17 ` [Bug middle-end/30905] [4.3 Regression] " rguenth at gcc dot gnu dot org
2007-06-29 17:58 ` mmitchel at gcc dot gnu dot org
2007-07-04 22:35 ` pinskia at gcc dot gnu dot org
2007-07-05  8:41 ` rguenth at gcc dot gnu dot org
2007-10-16 13:34 ` steven at gcc dot gnu dot org
2008-01-10 19:27 ` steven at gcc dot gnu dot org
2008-01-10 23:18 ` steven at gcc dot gnu dot org
2008-01-11 13:31 ` zadeck at naturalbridge dot com
2008-01-11 14:02 ` rguenth at gcc dot gnu dot org
2008-01-11 14:03 ` stevenb dot gcc at gmail dot com
2008-01-11 15:26 ` rguenth at gcc dot gnu dot org
2008-01-11 15:39 ` steven at gcc dot gnu dot org
2009-06-11 17:38 ` rahul at icerasemi dot com
2009-06-11 19:48 ` steven at gcc dot gnu dot org
2009-06-11 19:49 ` steven at gcc dot gnu dot org
2009-08-04 12:49 ` rguenth at gcc dot gnu dot org
2010-01-09 22:17 ` [Bug middle-end/30905] [4.3/4.4/4.5 " steven at gcc dot gnu dot org
2010-02-12 21:12 ` steven at gcc dot gnu dot org
2010-03-21 12:04 ` steven 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).