From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23288 invoked by alias); 19 Jan 2015 13:59:34 -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 23210 invoked by uid 55); 19 Jan 2015 13:59:29 -0000 From: "ienkovich at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug rtl-optimization/64081] [5 Regression] r217827 prevents RTL loop unroll Date: Mon, 19 Jan 2015 13:59: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-Version: 5.0 X-Bugzilla-Keywords: missed-optimization X-Bugzilla-Severity: normal X-Bugzilla-Who: ienkovich 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: 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: 2015-01/txt/msg01836.txt.bz2 https://gcc.gnu.org/bugzilla/show_bug.cgi?id=64081 --- Comment #3 from ienkovich at gcc dot gnu.org --- Author: ienkovich Date: Mon Jan 19 13:58:54 2015 New Revision: 219842 URL: https://gcc.gnu.org/viewcvs?rev=219842&root=gcc&view=rev Log: gcc/ PR rtl-optimization/64081 * loop-iv.c (def_pred_latch_p): New function. (latch_dominating_def): Allow specific cases with non-single definitions. (iv_get_reaching_def): Likewise. (check_complex_exit_p): New function. (check_simple_exit): Use check_complex_exit_p to allow certain cases with exits not executing on any iteration. gcc/testsuite/ PR rtl-optimization/64081 * gcc.dg/pr64081.c: New test. Added: trunk/gcc/testsuite/gcc.dg/pr64081.c Modified: trunk/gcc/ChangeLog trunk/gcc/loop-iv.c trunk/gcc/testsuite/ChangeLog