[XLA] Simplify CopyInsertion a bit.

Almost all of the logic of the CopyRemover class was contained in an inner
class, BufferValueTracker.  This change moves the logic that was inside of
CopyRemover into callers, and promotes BufferValueTracker into a new
CopyRemover class.

PiperOrigin-RevId: 236404892
This commit is contained in:
Justin Lebar 2019-03-01 17:05:32 -08:00 committed by TensorFlower Gardener
parent c4bdb39bf8
commit 0955a2de88

File diff suppressed because it is too large Load Diff