On Sat, Dec 12, 2020 at 02:00:49PM +0100, Marc Glisse wrote: > > Extending it to non-constants is what I wanted to avoid. > > For ~(X + Y), because + is commutative, it wouldn't be a canonicalization > > as it would pick more-less randomly whether to do ~X + Y or X + ~Y. > > ~X - Y or ~Y - X I guess. > > Ok, I understand. But then in the constant case, why produce ~X + -C instead > of ~X - C (which I think doesn't need to care about negating),
Because we immediately simplify it again into ~X + (-C) then. Jakub