From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30526 invoked by alias); 27 Dec 2009 14:43:30 -0000 Received: (qmail 30445 invoked by uid 48); 27 Dec 2009 14:43:14 -0000 Date: Sun, 27 Dec 2009 14:43:00 -0000 Message-ID: <20091227144314.30444.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug middle-end/42512] [4.5 Regression] integer wrong code bug with loop In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "ebotcazou at gcc dot gnu dot org" 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: 2009-12/txt/msg02501.txt.bz2 ------- Comment #4 from ebotcazou at gcc dot gnu dot org 2009-12-27 14:43 ------- > It may be caused by revision 147716: > > http://gcc.gnu.org/ml/gcc-cvs/2009-05/msg00693.html Same trigger as the other so the same partial reversion works: Index: tree-scalar-evolution.c =================================================================== --- tree-scalar-evolution.c (revision 155361) +++ tree-scalar-evolution.c (working copy) @@ -1159,7 +1159,7 @@ follow_ssa_edge_expr (struct loop *loop, switch (code) { - CASE_CONVERT: + case NOP_EXPR: /* This assignment is under the form "a_1 = (cast) rhs. */ res = follow_ssa_edge_expr (loop, at_stmt, TREE_OPERAND (expr, 0), halting_phi, evolution_of_loop, limit); @@ -1222,7 +1222,7 @@ follow_ssa_edge_in_rhs (struct loop *loo switch (code) { - CASE_CONVERT: + case NOP_EXPR: /* This assignment is under the form "a_1 = (cast) rhs. */ res = follow_ssa_edge_expr (loop, stmt, gimple_assign_rhs1 (stmt), halting_phi, evolution_of_loop, limit); -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=42512