Simplify, test and document logic in instruction fusion that decides whether we
authorA. Unique TensorFlower <gardener@tensorflow.org>
Thu, 26 Apr 2018 18:40:46 +0000 (11:40 -0700)
committerTensorFlower Gardener <gardener@tensorflow.org>
Thu, 26 Apr 2018 18:43:56 +0000 (11:43 -0700)
commitd66adb41874acddfd9e01f46e064965ee39850ca
treeb243798b38649cb5ed278ba9dfcaf345c70e10eb
parenta8481834bb881f67e7b9523480c28f5b987e62e8
Simplify, test and document logic in instruction fusion that decides whether we
allow fusion when an operation needs to be duplicated.

PiperOrigin-RevId: 194429279
tensorflow/compiler/xla/service/BUILD
tensorflow/compiler/xla/service/instruction_fusion.cc
tensorflow/compiler/xla/service/instruction_fusion.h
tensorflow/compiler/xla/service/instruction_fusion_test.cc