From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18262 invoked by alias); 9 Oct 2004 07:59:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 18255 invoked from network); 9 Oct 2004 07:59:13 -0000 Received: from unknown (HELO atrey.karlin.mff.cuni.cz) (195.113.31.123) by sourceware.org with SMTP; 9 Oct 2004 07:59:13 -0000 Received: by atrey.karlin.mff.cuni.cz (Postfix, from userid 29025) id 771E04B4480; Sat, 9 Oct 2004 09:59:13 +0200 (CEST) Date: Sat, 09 Oct 2004 08:15:00 -0000 From: Zdenek Dvorak To: gcc-patches@gcc.gnu.org Subject: [patch] for PR 17560 Message-ID: <20041009075913.GA21088@atrey.karlin.mff.cuni.cz> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.6i X-SW-Source: 2004-10/txt/msg00811.txt.bz2 Hello, scev needs the irreducible loops to be marked, otherwise it can get stuck in one and recurse infinitely. Bootstrapped & regtested on x86_64. Zdenek PR tree-optimization/17560 * predict.c (tree_estimate_probability): Mark irreducible loops. Index: predict.c =================================================================== RCS file: /cvs/gcc/gcc/gcc/predict.c,v retrieving revision 1.128 diff -c -3 -p -r1.128 predict.c *** predict.c 28 Sep 2004 07:59:48 -0000 1.128 --- predict.c 8 Oct 2004 20:15:44 -0000 *************** tree_estimate_probability (void) *** 1300,1305 **** --- 1300,1306 ---- tree_bb_level_predictions (); + mark_irreducible_loops (&loops_info); predict_loops (&loops_info, false); FOR_EACH_BB (bb)