From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 10566 invoked by alias); 4 Sep 2010 08:29:58 -0000 Received: (qmail 10531 invoked by alias); 4 Sep 2010 08:29:43 -0000 Date: Sat, 04 Sep 2010 08:29:00 -0000 Message-ID: <20100904082943.10530.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/45522] VRP misses oppurtunity for statement folding. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenther at suse dot de" 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: 2010-09/txt/msg00541.txt.bz2 ------- Comment #8 from rguenther at suse dot de 2010-09-04 08:29 ------- Subject: Re: VRP misses oppurtunity for statement folding. On Fri, 3 Sep 2010, hubicka at gcc dot gnu dot org wrote: > ------- Comment #7 from hubicka at gcc dot gnu dot org 2010-09-03 20:28 ------- > In #5 the expression is created by PRE via create_expression_by_pieces that > uses normal fold that is not able of constant variable folding. The statement > does not get folded later and survives. I guess one can fold all statements in > commit_edge_insertions but it seems by symptomatic? You need to enhance fully_constant_vn_reference_p. Richard. -- http://gcc.gnu.org/bugzilla/show_bug.cgi?id=45522