public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug optimization/14674] New: [tree-ssa] DOM misses ABS to negative translation
@ 2004-03-21 22:51 pinskia at gcc dot gnu dot org
2004-03-21 22:52 ` [Bug optimization/14674] " pinskia at gcc dot gnu dot org
0 siblings, 1 reply; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-21 22:51 UTC (permalink / raw)
To: gcc-bugs
/* { 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
^ permalink raw reply [flat|nested] 2+ messages in thread
* [Bug optimization/14674] [tree-ssa] DOM misses ABS to negative translation
2004-03-21 22:51 [Bug optimization/14674] New: [tree-ssa] DOM misses ABS to negative translation pinskia at gcc dot gnu dot org
@ 2004-03-21 22:52 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 2+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2004-03-21 22:52 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2004-03-21 22:52 -------
Stupid wireless network.
*** This bug has been marked as a duplicate of 14673 ***
--
What |Removed |Added
----------------------------------------------------------------------------
Status|UNCONFIRMED |RESOLVED
Resolution| |DUPLICATE
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14674
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2004-03-21 22:52 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-03-21 22:51 [Bug optimization/14674] New: [tree-ssa] DOM misses ABS to negative translation pinskia at gcc dot gnu dot org
2004-03-21 22:52 ` [Bug optimization/14674] " pinskia at gcc dot gnu dot org
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).