This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug tree-optimization/23429] Operations involving unsigneds could be simplified
- From: "pinskia at physics dot uc dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 16 Aug 2005 21:10:57 -0000
- Subject: [Bug tree-optimization/23429] Operations involving unsigneds could be simplified
- References: <20050816205130.23429.tkoenig@gcc.gnu.org>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- 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