From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29793 invoked by alias); 21 Mar 2004 22:51:11 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 29780 invoked by uid 48); 21 Mar 2004 22:51:11 -0000 Date: Sun, 21 Mar 2004 22:51:00 -0000 From: "pinskia at gcc dot gnu dot org" To: gcc-bugs@gcc.gnu.org Message-ID: <20040321225111.14674.pinskia@gcc.gnu.org> Reply-To: gcc-bugzilla@gcc.gnu.org Subject: [Bug optimization/14674] New: [tree-ssa] DOM misses ABS to negative translation X-Bugzilla-Reason: CC X-SW-Source: 2004-03/txt/msg02592.txt.bz2 List-Id: /* { dg-do compile } */ /* { dg-options "-O1 -fdump-tree-dom3" } */ int foo2 (distance, i, j) int distance; int i, j; { int t = distance; if (t <= 0) t = ((t) >= 0 ? (t) : -(t)); return t; } /* There should be no ABS_EXPR. */ /* { dg-final { scan-tree-dump-times "ABS_EXPR " 0 "dom3"} } */ Noticed while looking to why a test fail (gcc.dg/tree-ssa/20030807-6.c) on the lno branch after applying my patch to find ABS in phiopt. -- Summary: [tree-ssa] DOM misses ABS to negative translation Product: gcc Version: 3.4.0 Status: UNCONFIRMED Keywords: pessimizes-code Severity: enhancement Priority: P2 Component: optimization AssignedTo: unassigned at gcc dot gnu dot org ReportedBy: pinskia at gcc dot gnu dot org CC: gcc-bugs at gcc dot gnu dot org,law at gcc dot gnu dot org http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14674