From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21238 invoked by alias); 28 Nov 2012 00:18:13 -0000 Received: (qmail 20910 invoked by uid 55); 28 Nov 2012 00:17:43 -0000 From: "steven at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/55006] [4.8 Regression] aermod.f90 is miscompiled with '-m64 -O2 -funroll-loops' after revision 192526 Date: Wed, 28 Nov 2012 00:18:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: rtl-optimization X-Bugzilla-Keywords: patch, wrong-code X-Bugzilla-Severity: normal X-Bugzilla-Who: steven at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: steven at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.8.0 X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org X-SW-Source: 2012-11/txt/msg02616.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55006 --- Comment #6 from Steven Bosscher 2012-11-28 00:17:40 UTC --- Author: steven Date: Wed Nov 28 00:17:34 2012 New Revision: 193876 URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=193876 Log: PR rtl-optimization/55006 * loop-unroll.c (struct iv_to_split): Add new 'orig_var' member. (analyze_iv_to_split_insn): Record it. (maybe_strip_eq_note_for_split_iv): New function to remove REG_EQUAL notes that refer to IVs that are being split. (apply_opt_in_copies): Use maybe_strip_eq_note_for_split_iv. Twice. Use FOR_BB_INSNS_SAFE. Modified: trunk/gcc/ChangeLog trunk/gcc/loop-unroll.c