From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2366 invoked by alias); 3 Mar 2010 10:57:48 -0000 Received: (qmail 2033 invoked by uid 48); 3 Mar 2010 10:57:32 -0000 Date: Wed, 03 Mar 2010 10:57:00 -0000 Message-ID: <20100303105732.2032.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/38497] PRE missing a load PRE which causes a loop to have two BBs In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "steven 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: 2010-03/txt/msg00268.txt.bz2 ------- Comment #4 from steven at gcc dot gnu dot org 2010-03-03 10:57 ------- I think pinskia means we could transform the test case of comment #0 to: void DoHuffIteration(int); int f(int *a) { int i; int plaintextlen=*a; pretmp = plaintextlen; for(i = 0; i< 10000; i++) { DoHuffIteration(pretmp); pretmp = *a; } return pretmp - plaintextlen; } which makes this PRE, not hoisting. -- steven at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- CC|stevenb dot gcc at gmail dot| |com | Status|UNCONFIRMED |NEW Ever Confirmed|0 |1 Last reconfirmed|0000-00-00 00:00:00 |2010-03-03 10:57:32 date| | http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38497