From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11722 invoked by alias); 25 Nov 2014 08:39:56 -0000 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 Received: (qmail 11674 invoked by uid 48); 25 Nov 2014 08:39:51 -0000 From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug tree-optimization/64058] [5 Regression] Performance degradation after r216304 Date: Tue, 25 Nov 2014 08:39:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: tree-optimization X-Bugzilla-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 5.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: keywords Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2014-11/txt/msg02943.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64058 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |missed-optimization --- Comment #3 from Richard Biener --- This sounds like a TER effect - the -fdump-rtl-expand-details dump should show differences in SSA coalescing / TER replacements. You are talking about -(note 291 287 289 65 [bb 65] NOTE_INSN_BASIC_BLOCK) -(jump_insn 289 291 290 65 (set (pc) +(note 291 287 16 65 [bb 65] NOTE_INSN_BASIC_BLOCK) +(insn 16 291 289 65 (set (reg:SI 85 [ l1_lsm.7 ]) + (reg:SI 113 [ u1_lsm.6 ])) /nfs/ims/home/izamyati/test_216304.c:72 -1 + (nil)) +(jump_insn 289 16 290 65 (set (pc) (label_ref 288)) /nfs/ims/home/izamyati/test_216304.c:72 -1 (nil) -> 288) which doesn't appear in the good dump - thus it looks like u1_lsm.6 and l1_lsm.7 were coalesced there. Btw, on trunk the testcase is now optimized to trap unconditionally with -flto or -fwhole-program because the global vars are not initialized. Can you check on the coalescing theory?