https://gcc.gnu.org/bugzilla/show_bug.cgi?id=80588
Andrew Pinski <pinskia at gcc dot gnu.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Last reconfirmed| |2021-07-25
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Assignee|unassigned at gcc dot gnu.org |pinskia at gcc dot
gnu.org
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> ---
On the trunk the only one missing is test2b:
_8 = a_4(D) != 0;
_9 = b_3(D) != 0;
_10 = _8 ^ _9;
_1 = ~_10;
_7 = _8 == _9;
_2 = _1 == _7;
_5 = (int) _2;
If _7 is converted to _8 ^ _9
we would see _7 and _10 are the same
_10 = _8 ^ _9;
_1 = ~_10;
_7 = _10;
_2 = _1 ^ _7;
And then you have:
(~_10 ^ _10)
Which is always 1
And done.
So:
(simplify
(eq truth_value@0 truth_value@1)
(bit_xor @0 @1))
(simplify
(ne truth_value@0 truth_value@1)
(bit_xor (bit_xor @0 @1)) { build_one_cst (type); })