public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/57511] New: [4.8/4.9 Regression] Missing SCEV final value replacement
@ 2013-06-03 12:50 amonakov at gcc dot gnu.org
  2013-06-03 13:41 ` [Bug tree-optimization/57511] " amonakov at gcc dot gnu.org
                   ` (10 more replies)
  0 siblings, 11 replies; 12+ messages in thread
From: amonakov at gcc dot gnu.org @ 2013-06-03 12:50 UTC (permalink / raw)
  To: gcc-bugs

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

            Bug ID: 57511
           Summary: [4.8/4.9 Regression] Missing SCEV final value
                    replacement
           Product: gcc
           Version: 4.8.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: tree-optimization
          Assignee: unassigned at gcc dot gnu.org
          Reporter: amonakov at gcc dot gnu.org

The following simple loop is no longer optimized out with 4.8 and 4.9:


int main(int argc, char* argv[])
{
    int i, a = 0;
    for (i=0; i < 10000; i++)
            a += i + 0xff00ff;
    return a;
}


$ gcc-4.7.2 -O2 -S main.c -o-
main:
.LFB0:
    .cfi_startproc
    movl    $-334379544, %eax
    ret


$ gcc-4.8.0 -O2 -S main.c -o-
main:
.LFB0:
    .cfi_startproc
    movl    $16711935, %edx
    xorl    %eax, %eax
    .p2align 4,,10
    .p2align 3
.L3:
    addl    %edx, %eax
    addl    $1, %edx
    cmpl    $16721935, %edx
    jne    .L3
    rep ret


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

end of thread, other threads:[~2021-12-17  7:58 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-03 12:50 [Bug tree-optimization/57511] New: [4.8/4.9 Regression] Missing SCEV final value replacement amonakov at gcc dot gnu.org
2013-06-03 13:41 ` [Bug tree-optimization/57511] " amonakov at gcc dot gnu.org
2013-06-04 12:40 ` rguenth at gcc dot gnu.org
2013-08-28 14:17 ` rguenth at gcc dot gnu.org
2013-08-29  9:42 ` rguenth at gcc dot gnu.org
2013-09-02  8:28 ` rguenth at gcc dot gnu.org
2013-09-02 13:24 ` rguenth at gcc dot gnu.org
2013-09-02 13:25 ` [Bug tree-optimization/57511] [4.8 " rguenth at gcc dot gnu.org
2013-10-16  9:51 ` jakub at gcc dot gnu.org
2014-05-22  9:06 ` rguenth at gcc dot gnu.org
2014-12-10 12:40 ` rguenth at gcc dot gnu.org
2021-12-17  7:58 ` 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).