public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
       [not found] <bug-44683-4@http.gcc.gnu.org/bugzilla/>
@ 2011-10-22 16:58 ` ebotcazou at gcc dot gnu.org
  2011-10-23 15:58 ` ebotcazou at gcc dot gnu.org
  1 sibling, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-22 16:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683

Eric Botcazou <ebotcazou at gcc dot gnu.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ebotcazou at gcc dot
                   |                            |gnu.org
      Known to work|                            |
      Known to fail|                            |

--- Comment #11 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-22 16:56:59 UTC ---
While working on a related subject, the testcase started to regress.  IMHO the
fix only papers over the problem (try with -fno-trapping-math for example).
Even in the true edge of a conditional expression, you cannot infer a simple
equivalence as soon as there are or there might be signed zeros involved.


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
       [not found] <bug-44683-4@http.gcc.gnu.org/bugzilla/>
  2011-10-22 16:58 ` [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin ebotcazou at gcc dot gnu.org
@ 2011-10-23 15:58 ` ebotcazou at gcc dot gnu.org
  1 sibling, 0 replies; 7+ messages in thread
From: ebotcazou at gcc dot gnu.org @ 2011-10-23 15:58 UTC (permalink / raw)
  To: gcc-bugs

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683

--- Comment #12 from Eric Botcazou <ebotcazou at gcc dot gnu.org> 2011-10-23 15:57:13 UTC ---
Author: ebotcazou
Date: Sun Oct 23 15:57:09 2011
New Revision: 180340

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=180340
Log:
    * fold-const.c (invert_tree_comparison): Always invert EQ_EXPR/NE_EXPR.

    PR tree-optimization/44683
    * tree-ssa-dom.c (record_edge_info): Record simple equivalences only if
    we can be sure that there are no signed zeros involved.

Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/fold-const.c
    trunk/gcc/tree-ssa-dom.c


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
  2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
                   ` (3 preceding siblings ...)
  2010-06-27 11:22 ` rguenth at gcc dot gnu dot org
@ 2010-06-27 11:23 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27 11:23 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #10 from rguenth at gcc dot gnu dot org  2010-06-27 11:23 -------
Fixed.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|ASSIGNED                    |RESOLVED
      Known to fail|4.6.0                       |4.4.4 4.5.0
      Known to work|4.3.4                       |4.3.4 4.4.5 4.5.1 4.6.0
         Resolution|                            |FIXED


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
  2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
                   ` (2 preceding siblings ...)
  2010-06-27 11:21 ` rguenth at gcc dot gnu dot org
@ 2010-06-27 11:22 ` rguenth at gcc dot gnu dot org
  2010-06-27 11:23 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27 11:22 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #9 from rguenth at gcc dot gnu dot org  2010-06-27 11:22 -------
Subject: Bug 44683

Author: rguenth
Date: Sun Jun 27 11:22:06 2010
New Revision: 161469

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161469
Log:
2010-06-27  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/44683
        * tree-ssa-dom.c (record_edge_info): Record equivalences for the
        false edge from the inverted condition.

        * gcc.c-torture/execute/pr44683.c: New testcase.

Added:
    branches/gcc-4_4-branch/gcc/testsuite/gcc.c-torture/execute/pr44683.c
Modified:
    branches/gcc-4_4-branch/gcc/ChangeLog
    branches/gcc-4_4-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_4-branch/gcc/tree-ssa-dom.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
  2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
  2010-06-27  8:50 ` [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
  2010-06-27 11:17 ` rguenth at gcc dot gnu dot org
@ 2010-06-27 11:21 ` rguenth at gcc dot gnu dot org
  2010-06-27 11:22 ` rguenth at gcc dot gnu dot org
  2010-06-27 11:23 ` rguenth at gcc dot gnu dot org
  4 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27 11:21 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #8 from rguenth at gcc dot gnu dot org  2010-06-27 11:21 -------
Subject: Bug 44683

Author: rguenth
Date: Sun Jun 27 11:21:07 2010
New Revision: 161468

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161468
Log:
2010-06-27  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/44683
        * tree-ssa-dom.c (record_edge_info): Record equivalences for the
        false edge from the inverted condition.

        * gcc.c-torture/execute/pr44683.c: New testcase.

Added:
    branches/gcc-4_5-branch/gcc/testsuite/gcc.c-torture/execute/pr44683.c
Modified:
    branches/gcc-4_5-branch/gcc/ChangeLog
    branches/gcc-4_5-branch/gcc/testsuite/ChangeLog
    branches/gcc-4_5-branch/gcc/tree-ssa-dom.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
  2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
  2010-06-27  8:50 ` [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
@ 2010-06-27 11:17 ` rguenth at gcc dot gnu dot org
  2010-06-27 11:21 ` rguenth at gcc dot gnu dot org
                   ` (2 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27 11:17 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #7 from rguenth at gcc dot gnu dot org  2010-06-27 11:16 -------
Subject: Bug 44683

Author: rguenth
Date: Sun Jun 27 11:16:46 2010
New Revision: 161467

URL: http://gcc.gnu.org/viewcvs?root=gcc&view=rev&rev=161467
Log:
2010-06-27  Richard Guenther  <rguenther@suse.de>

        PR tree-optimization/44683
        * tree-ssa-dom.c (record_edge_info): Record equivalences for the
        false edge from the inverted condition.

        * gcc.c-torture/execute/pr44683.c: New testcase.

Added:
    trunk/gcc/testsuite/gcc.c-torture/execute/pr44683.c
Modified:
    trunk/gcc/ChangeLog
    trunk/gcc/testsuite/ChangeLog
    trunk/gcc/tree-ssa-dom.c


-- 


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683


^ permalink raw reply	[flat|nested] 7+ messages in thread

* [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin
  2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
@ 2010-06-27  8:50 ` rguenth at gcc dot gnu dot org
  2010-06-27 11:17 ` rguenth at gcc dot gnu dot org
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 7+ messages in thread
From: rguenth at gcc dot gnu dot org @ 2010-06-27  8:50 UTC (permalink / raw)
  To: gcc-bugs



------- Comment #6 from rguenth at gcc dot gnu dot org  2010-06-27 08:50 -------
Indeed.  It's exposed by that patch.

DOM, from seeing x_2(D) != 0.0 records x_2(D) == 0.0 as equivalence.  This
is not correct if signed zeros can appear.

I have a patch.


-- 

rguenth at gcc dot gnu dot org changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         AssignedTo|unassigned at gcc dot gnu   |rguenth at gcc dot gnu dot
                   |dot org                     |org
             Status|NEW                         |ASSIGNED
          Component|rtl-optimization            |tree-optimization
   Last reconfirmed|2010-06-26 22:57:46         |2010-06-27 08:50:38
               date|                            |


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=44683


^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-10-23 15:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-44683-4@http.gcc.gnu.org/bugzilla/>
2011-10-22 16:58 ` [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] Optimization bug with copysign builtin ebotcazou at gcc dot gnu.org
2011-10-23 15:58 ` ebotcazou at gcc dot gnu.org
2010-06-26 17:00 [Bug c/44683] New: " dickinsm at gmail dot com
2010-06-27  8:50 ` [Bug tree-optimization/44683] [4.4/4.5/4.6 Regression] " rguenth at gcc dot gnu dot org
2010-06-27 11:17 ` rguenth at gcc dot gnu dot org
2010-06-27 11:21 ` rguenth at gcc dot gnu dot org
2010-06-27 11:22 ` rguenth at gcc dot gnu dot org
2010-06-27 11:23 ` rguenth 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).