public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug middle-end/30904]  New: [dataflow] No longer optimizes shifts with large count
@ 2007-02-21  9:54 rguenth at gcc dot gnu dot org
  2007-02-21 13:31 ` [Bug middle-end/30904] " belyshev at depni dot sinp dot msu dot ru
                   ` (9 more replies)
  0 siblings, 10 replies; 11+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2007-02-21  9:54 UTC (permalink / raw)
  To: gcc-bugs

extern void link_error (const char *);
extern int ones;
void foo(int);
void kernel ()
{
    struct { unsigned int a : 7; } s;

      s.a = ones;

      if (s.a >> 8)
          link_error ("foo");
      if (s.a >> 9)
          link_error ("foo");
}

mainline optimizes this to an empty function with -O2, dataflow branch
retains the s.a >> 9 check.


-- 
           Summary: [dataflow] No longer optimizes shifts with large count
           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=30904


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

end of thread, other threads:[~2007-03-09 12:29 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-21  9:54 [Bug middle-end/30904] New: [dataflow] No longer optimizes shifts with large count rguenth at gcc dot gnu dot org
2007-02-21 13:31 ` [Bug middle-end/30904] " belyshev at depni dot sinp dot msu dot ru
2007-02-21 15:58 ` steven at gcc dot gnu dot org
2007-02-21 16:03 ` bonzini at gnu dot org
2007-02-21 16:05 ` bonzini at gnu dot org
2007-02-21 16:11 ` bonzini at gnu dot org
2007-02-21 16:24 ` bonzini at gnu dot org
2007-02-22  8:41 ` [Bug tree-optimization/30904] VRP does not track values of shifts and/or bitfields? bonzini at gnu dot org
2007-02-24 16:08 ` bonzini at gcc dot gnu dot org
2007-03-09 12:29 ` rguenth at gcc dot gnu dot org
2007-03-09 12:29 ` 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).