From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16097 invoked by alias); 20 Feb 2008 20:46:06 -0000 Received: (qmail 15931 invoked by uid 48); 20 Feb 2008 20:45:24 -0000 Date: Wed, 20 Feb 2008 20:46:00 -0000 Message-ID: <20080220204524.15930.qmail@sourceware.org> X-Bugzilla-Reason: CC References: Subject: [Bug tree-optimization/35269] missed optimization of std::vector access. In-Reply-To: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "rguenth 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: 2008-02/txt/msg02163.txt.bz2 ------- Comment #1 from rguenth at gcc dot gnu dot org 2008-02-20 20:45 ------- Sorry, but the vector v is potentially clobbered by the call to f, so the load of the array pointer you index into with i is not loop invariant. -- rguenth at gcc dot gnu dot org changed: What |Removed |Added ---------------------------------------------------------------------------- Status|UNCONFIRMED |RESOLVED Resolution| |INVALID http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35269