[XLA] Simplify double negate and double not
Double neg shows up around sort ops. Add a simple peephole optimization for neg(neg(x)) => x. Also handle not(not(x)) => x while there. PiperOrigin-RevId: 220783764
Loading
Please sign in to comment
Double neg shows up around sort ops. Add a simple peephole optimization for neg(neg(x)) => x. Also handle not(not(x)) => x while there. PiperOrigin-RevId: 220783764