public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/58791] New: [4.9 Regression] Reassoc reuses SSA_NAMEs
@ 2013-10-18 16:23 jakub at gcc dot gnu.org
  2013-10-18 16:30 ` [Bug tree-optimization/58791] " jakub at gcc dot gnu.org
                   ` (6 more replies)
  0 siblings, 7 replies; 8+ messages in thread
From: jakub at gcc dot gnu.org @ 2013-10-18 16:23 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 58791
           Summary: [4.9 Regression] Reassoc reuses SSA_NAMEs
           Product: gcc
           Version: 4.9.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: jakub at gcc dot gnu.org
          Reporter: jakub at gcc dot gnu.org

volatile char v;

unsigned
foo (unsigned x)
{
  if (x > 7)
    return 0;

  unsigned a = x + 1;
  unsigned b = x + 2;
  unsigned c = a + b;
  unsigned d = 3 * x + 4;
  unsigned e = x + 3;
  unsigned f = d + c + e;
  unsigned a2 = a;
  unsigned b2 = b;
  unsigned c2 = c;
  unsigned d2 = d;
  unsigned e2 = e;
  unsigned f2 = f;
  v++;
  return f;
}

look at -O2 -fdump-tree-reassoc1-alias, the range info is definitely wrong
there for many of the SSA_NAMEs.


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

end of thread, other threads:[~2013-10-25 10:31 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-10-18 16:23 [Bug tree-optimization/58791] New: [4.9 Regression] Reassoc reuses SSA_NAMEs jakub at gcc dot gnu.org
2013-10-18 16:30 ` [Bug tree-optimization/58791] " jakub at gcc dot gnu.org
2013-10-18 19:06 ` ktietz at gcc dot gnu.org
2013-10-18 19:17 ` jakub at gcc dot gnu.org
2013-10-21  8:43 ` rguenth at gcc dot gnu.org
2013-10-22  9:52 ` jakub at gcc dot gnu.org
2013-10-23 16:19 ` jakub at gcc dot gnu.org
2013-10-25 10:31 ` rguenth 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).