message: [XLA] Do not reorder slices and reshapes after layout assignment. The helper function does not handle layouts properly and a backend may not support the layout generated.
diff: @@ -3214,7 +3214,11 @@ Status AlgebraicSimplifierVisitor::HandleSlice(HloInstruction* slice) {
  return Status::OK();
  }
  + // Do not try to reorder slices and reshapes after layout assignment as it may
  + // be invalid.
  + if (!options_.is_layout_sensitive()) {
  TF_ASSIGN_OR_RETURN(replaced, TryToReorderSliceAndReshape(slice));
  + }
  if (replaced) {
  return Status::OK();
  }
  