These two functions should be the same at the tree level but are not: int f(int a, int b) { return (a^b)^a; } int f1(int a, int b) { return b; } --- Another one from LLVM.
Confirmed.
Subject: Re: Fold does not fold (a^b)^a to b On Sat, 2005-09-17 at 02:12 +0000, pinskia at gcc dot gnu dot org wrote: > ------- Additional Comments From pinskia at gcc dot gnu dot org 2005-09-17 02:12 ------- > Confirmed. > The new reassoc should take care of this
Fixed.