From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9932 invoked by alias); 8 Oct 2004 12:16:54 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 9904 invoked by alias); 8 Oct 2004 12:16:53 -0000 Date: Fri, 08 Oct 2004 12:16:00 -0000 Message-ID: <20041008121653.9903.qmail@sourceware.org> From: "hubicka at ucw dot cz" To: gcc-bugs@gcc.gnu.org In-Reply-To: <20040919165202.17560.kherron+gcc@fmailbox.com> References: <20040919165202.17560.kherron+gcc@fmailbox.com> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug tree-optimization/17560] [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os X-Bugzilla-Reason: CC X-SW-Source: 2004-10/txt/msg01028.txt.bz2 List-Id: ------- Additional Comments From hubicka at ucw dot cz 2004-10-08 12:16 ------- Subject: Re: [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os > > ------- Additional Comments From sebastian dot pop at cri dot ensmp dot fr 2004-10-08 12:07 ------- > Subject: Re: [4.0 Regression] Infinite recursion in tree-scalar-evolution with -Os > > Here is what the code looks like at the level of my analyzer. > > loop_0 > { > bb_0 (preds = {bb_-1}, succs = {bb_0bb_0}) > { > : > if (i_4 != 0) goto ; else goto ; > > } > bb_1 (preds = {bb_0}, succs = {bb_1}) > { > :; > i_7 = i_4 + 1; > > } > bb_2 (preds = {bb_5bb_1}, succs = {bb_2}) > { > # i_1 = PHI ; > L:; > goto (); > > } > bb_5 (preds = {bb_0bb_4}, succs = {bb_5bb_5}) > { > # i_2 = PHI ; > :; > if (i_2 != 1) goto L; else goto ; > > } > bb_6 (preds = {bb_5}, succs = {bb_6}) > { > :; > return; > > } > loop_1 > { > bb_3 (preds = {bb_4}, succs = {bb_3}) > { > :; > j_6 = j_3 + 1; > > } > bb_4 (preds = {bb_3bb_2}, succs = {bb_4bb_4}) > { > # j_3 = PHI <0(2), j_6(3)>; > :; > if (j_3 < i_1) goto ; else goto ; > > } > } > } > > The problem is that we have a cycle "i_1 -> i_2 -> i_1" outside any > loop, and I'm not sure about the semantics of this representation. > By the way, is this a valid SSA form? It seems to me that this can definitly happen in the case of irreducible regions... Honza > > > > -- > > > http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17560 > > ------- You are receiving this mail because: ------- > You are on the CC list for the bug, or are watching someone who is. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17560