Commit d703f64e authored by Benjamin Kramer's avatar Benjamin Kramer Committed by TensorFlower Gardener
Browse files

[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
parent 45a841ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment