aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/instruction_fusion.cc
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-11-21 22:27:21 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-21 22:31:07 -0800
commitef3ee202659a2a49afcd9898451bf9b1256a2757 (patch)
treeff71c530bded067ef56760d3c922e03ad952bed2 /tensorflow/compiler/xla/service/instruction_fusion.cc
parent7f88363810e77a39db919fb4000583ad0138e53c (diff)
[XLA] Add BitcastConvert HLO op to enable bitwise operations on
floating point types. PiperOrigin-RevId: 176610007
Diffstat (limited to 'tensorflow/compiler/xla/service/instruction_fusion.cc')
-rw-r--r--tensorflow/compiler/xla/service/instruction_fusion.cc19
1 files changed, 10 insertions, 9 deletions
diff --git a/tensorflow/compiler/xla/service/instruction_fusion.cc b/tensorflow/compiler/xla/service/instruction_fusion.cc
index de4804996f..ba901b99e4 100644
--- a/tensorflow/compiler/xla/service/instruction_fusion.cc
+++ b/tensorflow/compiler/xla/service/instruction_fusion.cc
@@ -33,7 +33,9 @@ namespace xla {
switch (instruction.opcode()) {
// Cheap instructions.
case HloOpcode::kAdd:
+ case HloOpcode::kAnd:
case HloOpcode::kBitcast:
+ case HloOpcode::kBitcastConvert:
case HloOpcode::kBroadcast:
case HloOpcode::kCeil:
case HloOpcode::kClamp:
@@ -53,15 +55,14 @@ namespace xla {
case HloOpcode::kInfeed:
case HloOpcode::kIsFinite:
case HloOpcode::kLe:
- case HloOpcode::kAnd:
- case HloOpcode::kNot:
- case HloOpcode::kOr:
case HloOpcode::kLt:
case HloOpcode::kMaximum:
case HloOpcode::kMinimum:
case HloOpcode::kMultiply:
case HloOpcode::kNe:
case HloOpcode::kNegate:
+ case HloOpcode::kNot:
+ case HloOpcode::kOr:
case HloOpcode::kOutfeed:
case HloOpcode::kPad:
case HloOpcode::kReal:
@@ -88,9 +89,9 @@ namespace xla {
// Expensive instructions.
case HloOpcode::kAtan2:
- case HloOpcode::kBatchNormTraining:
- case HloOpcode::kBatchNormInference:
case HloOpcode::kBatchNormGrad:
+ case HloOpcode::kBatchNormInference:
+ case HloOpcode::kBatchNormTraining:
case HloOpcode::kCall:
case HloOpcode::kConditional:
case HloOpcode::kConvolution:
@@ -104,19 +105,19 @@ namespace xla {
case HloOpcode::kMap:
case HloOpcode::kParameter:
case HloOpcode::kPower:
+ case HloOpcode::kRecv:
+ case HloOpcode::kRecvDone:
case HloOpcode::kReduce:
case HloOpcode::kReduceWindow:
case HloOpcode::kRemainder:
case HloOpcode::kRng:
case HloOpcode::kSelectAndScatter:
+ case HloOpcode::kSend:
+ case HloOpcode::kSendDone:
case HloOpcode::kSort:
case HloOpcode::kTanh:
case HloOpcode::kTrace:
case HloOpcode::kWhile:
- case HloOpcode::kSend:
- case HloOpcode::kSendDone:
- case HloOpcode::kRecv:
- case HloOpcode::kRecvDone:
return true;
}