aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/compiler/xla/service/tuple_points_to_analysis.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/compiler/xla/service/tuple_points_to_analysis.cc')
-rw-r--r--tensorflow/compiler/xla/service/tuple_points_to_analysis.cc23
1 files changed, 4 insertions, 19 deletions
diff --git a/tensorflow/compiler/xla/service/tuple_points_to_analysis.cc b/tensorflow/compiler/xla/service/tuple_points_to_analysis.cc
index 6fed7c76d0..811ac55e2d 100644
--- a/tensorflow/compiler/xla/service/tuple_points_to_analysis.cc
+++ b/tensorflow/compiler/xla/service/tuple_points_to_analysis.cc
@@ -280,16 +280,6 @@ Status TuplePointsToAnalysis::HandleDomain(HloInstruction* domain) {
return Status::OK();
}
-Status TuplePointsToAnalysis::HandleSlice(HloInstruction* slice) {
- // A kSlice instruction aliases its operand if the backend lowers it to an
- // in-place implementation.
- if (slice->IsInPlaceSlice()) {
- CreateCopiedPointsToSet(slice, slice->operand(0));
- return Status::OK();
- }
- return DefaultAction(slice);
-}
-
Status TuplePointsToAnalysis::HandleRecvDone(HloInstruction* recv_done) {
// RecvDone aliases its input (Recv) tuple element {0} to element {0} of its
// output. The other indices ({} and {1}) define their own buffers.
@@ -455,15 +445,10 @@ bool TuplePointsToAnalysis::InstructionDefinesBufferAtIndex(
Status TuplePointsToAnalysis::VerifyBuffer(const LogicalBuffer& buffer) const {
if (!InstructionDefinesBufferAtIndex(buffer.instruction(), buffer.index())) {
- // kSlice ops that are lowered to an in-place version are expected to not
- // define their output buffer.
- if (buffer.instruction()->opcode() != HloOpcode::kSlice ||
- !buffer.instruction()->IsInPlaceSlice()) {
- return FailedPrecondition(
- "LogicalBuffer %s is ill-defined: instruction %s does not define a "
- "buffer at that index",
- buffer.ToString(), buffer.instruction()->name());
- }
+ return FailedPrecondition(
+ "LogicalBuffer %s is ill-defined: instruction %s does not define a "
+ "buffer at that index",
+ buffer.ToString(), buffer.instruction()->name());
}
if (buffer.id() < 0 ||