public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug tree-optimization/23429] Operations involving unsigneds could be simplified
[not found] <bug-23429-10391@http.gcc.gnu.org/bugzilla/>
@ 2005-12-13 4:30 ` pinskia at gcc dot gnu dot org
0 siblings, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-12-13 4:30 UTC (permalink / raw)
To: gcc-bugs
------- Comment #3 from pinskia at gcc dot gnu dot org 2005-12-13 04:30 -------
Fixed in 4.2.0 by:
2005-12-12 Jeff Law <law@redhat.com>
* tree-ssa-dom.c (simplify_rhs_and_lookup_avail_expr): Remove
reassociation code.
* passes.c (init_optimization_passes): Run reassociation again
after loop optimizations.
2005-12-12 Daniel Berlin <dberlin@dberlin.org>
* tree-ssa-dom.c (thread_across_edge): Canonicalize condition
if necessary.
(optimize_stmt): Ditto.
(canonicalize_comparison): New function.
* tree-ssa-operands.c (swap_tree_operands): Make external.
(get_expr_operands): Stop auto-canonicalization.
* tree-ssa-reassoc.c: Rewrite.
(init_optimization_passes):
* tree-flow.h (swap_tree_operands): Prototype.
* Makefile.in (tree-ssa-reassoc.o): Update dependencies.
--
pinskia at gcc dot gnu dot org changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |FIXED
Target Milestone|--- |4.2.0
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23429
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/23429] Operations involving unsigneds could be simplified
2005-08-16 21:07 [Bug tree-optimization/23429] New: " tkoenig at gcc dot gnu dot org
2005-08-16 21:20 ` [Bug tree-optimization/23429] " pinskia at physics dot uc dot edu
@ 2005-08-17 1:41 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at gcc dot gnu dot org @ 2005-08-17 1:41 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at gcc dot gnu dot org 2005-08-17 01:36 -------
Confirmed, this is basically the same issue as PR 22312.
--
What |Removed |Added
----------------------------------------------------------------------------
BugsThisDependsOn| |22312
Status|UNCONFIRMED |NEW
Ever Confirmed| |1
Last reconfirmed|0000-00-00 00:00:00 |2005-08-17 01:36:50
date| |
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23429
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Bug tree-optimization/23429] Operations involving unsigneds could be simplified
2005-08-16 21:07 [Bug tree-optimization/23429] New: " tkoenig at gcc dot gnu dot org
@ 2005-08-16 21:20 ` pinskia at physics dot uc dot edu
2005-08-17 1:41 ` pinskia at gcc dot gnu dot org
1 sibling, 0 replies; 3+ messages in thread
From: pinskia at physics dot uc dot edu @ 2005-08-16 21:20 UTC (permalink / raw)
To: gcc-bugs
------- Additional Comments From pinskia at physics dot uc dot edu 2005-08-16 21:10 -------
Subject: Re: New: Operations involving unsigneds could be simplified
>
> This could just return 1.
>
> $ cat unsigned-arith.c
> int foo(unsigned int *a, unsigned int *b, unsigned int *c)
> {
> unsigned int s1, s2;
>
> s1 = *a + *b;
> s2 = *c + *b;
>
> return s1 + *c == s2 + *a;
> }
The issue here is the reassociater needs to be a fully reassociater
and that has a couple of different bugs about this filed already.
-- Pinski
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=23429
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-12-13 4:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <bug-23429-10391@http.gcc.gnu.org/bugzilla/>
2005-12-13 4:30 ` [Bug tree-optimization/23429] Operations involving unsigneds could be simplified pinskia at gcc dot gnu dot org
2005-08-16 21:07 [Bug tree-optimization/23429] New: " tkoenig at gcc dot gnu dot org
2005-08-16 21:20 ` [Bug tree-optimization/23429] " pinskia at physics dot uc dot edu
2005-08-17 1:41 ` 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).