Summary: | [3.2 regression] loop unroll bug with -march=k6-3 | ||
---|---|---|---|
Product: | gcc | Reporter: | 162919 |
Component: | rtl-optimization | Assignee: | Eric Botcazou <ebotcazou> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | gcc-bugs, sirl |
Priority: | P3 | Keywords: | wrong-code |
Version: | 3.2.1 | ||
Target Milestone: | --- | ||
Host: | i386-linux | Target: | |
Build: | Known to work: | ||
Known to fail: | Last reconfirmed: |
Description
162919
2002-11-16 01:06:01 UTC
Responsible-Changed-From-To: unassigned->ebotcazou Responsible-Changed-Why: Already fixed on mainline. Backporting. State-Changed-From-To: open->closed State-Changed-Why: Fixed. From: ebotcazou@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: optimization/8599 Date: 22 Nov 2002 21:20:05 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_2-branch Changes by: ebotcazou@gcc.gnu.org 2002-11-22 13:20:05 Modified files: gcc : ChangeLog doloop.c loop.c Log message: PR optimization/8599 Merge from mainline: 2002-11-04 Dale Johannesen <dalej@apple.com> * doloop.c (doloop_modify_runtime): Fix loop count computation for unrolled loops. * loop.c (loop_invariant_p): Support calling from unroller. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.13152.2.657.2.142&r2=1.13152.2.657.2.143 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doloop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.16.8.2&r2=1.16.8.3 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.389.2.7.2.4&r2=1.389.2.7.2.5 State-Changed-From-To: closed->open State-Changed-Why: Reopen, backported fix From Dale causes a regression on powerpc-linux-gnu. The testcase gcc.c-torture/execute/961213-1.c now fails with -O2 -funroll-loops. Presumably the backported patch relies on some other changes in the mainline. State-Changed-From-To: open->closed State-Changed-Why: Fixed, hopefully correctly this time. From: ebotcazou@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: optimization/8599 Date: 21 Dec 2002 20:25:45 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_2-branch Changes by: ebotcazou@gcc.gnu.org 2002-12-21 12:25:44 Modified files: gcc : ChangeLog loop.c doloop.c gcc/testsuite : ChangeLog Added files: gcc/testsuite/gcc.dg: unroll-1.c Log message: PR optimization/8599 * doloop.c (doloop_modify_runtime): Revert 2002-11-22 change. * loop.c (loop_invariant_p): Likewise. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.13152.2.657.2.165&r2=1.13152.2.657.2.166 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/loop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.389.2.7.2.6&r2=1.389.2.7.2.7 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doloop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.16.8.3&r2=1.16.8.4 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.1672.2.166.2.75&r2=1.1672.2.166.2.76 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/testsuite/gcc.dg/unroll-1.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=NONE&r2=1.1.2.1 From: ebotcazou@gcc.gnu.org To: gcc-gnats@gcc.gnu.org Cc: Subject: optimization/8599 Date: 21 Dec 2002 20:31:16 -0000 CVSROOT: /cvs/gcc Module name: gcc Branch: gcc-3_2-branch Changes by: ebotcazou@gcc.gnu.org 2002-12-21 12:31:16 Modified files: gcc : ChangeLog doloop.c Log message: PR optimization/8599 * doloop.c (doloop_modify_runtime): Fix loop count computation for preconditioned unrolled loops. Patches: http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/ChangeLog.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.13152.2.657.2.166&r2=1.13152.2.657.2.167 http://gcc.gnu.org/cgi-bin/cvsweb.cgi/gcc/gcc/doloop.c.diff?cvsroot=gcc&only_with_tag=gcc-3_2-branch&r1=1.16.8.4&r2=1.16.8.5 |