From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18030 invoked by alias); 4 Dec 2008 14:46:55 -0000 Received: (qmail 17487 invoked by uid 48); 4 Dec 2008 14:45:32 -0000 Date: Thu, 04 Dec 2008 14:46:00 -0000 Subject: [Bug tree-optimization/38401] New: TreeSSA-PRE load after store misoptimization X-Bugzilla-Reason: CC Message-ID: Reply-To: gcc-bugzilla@gcc.gnu.org To: gcc-bugs@gcc.gnu.org From: "sergeid at il dot ibm dot com" 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-12/txt/msg00385.txt.bz2 There is an obvious redundant LOAD in the in the following code ( (*) line): void f (int n, int *cond, int *res) { int i; *res = 0; for (i = 0; i < n; i++) if (*cond) *res ^= 234; /* (*) */ } GCSE LAS (load after store) catches it in RTL stage but it should be catched by PRE in TreeSSA stage. -- Summary: TreeSSA-PRE load after store misoptimization Product: gcc Version: 4.4.0 Status: UNCONFIRMED Severity: minor Priority: P3 Component: tree-optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: sergeid at il dot ibm dot com GCC build triplet: powerpc GCC host triplet: powerpc GCC target triplet: powerpc http://gcc.gnu.org/bugzilla/show_bug.cgi?id=38401