message: [XLA/GPU] Use IsElementwiseOnOperand() to test elementwise relationship.
  Otherwise, we will exclude DynamicSliceUpdate because it is not a
  pure elementwise instruction.
diff: @@ -257,7 +257,6 @@ bool AreTransitiveUsesEffectivelyElementwise(const HloInstruction* param,
  continue;
  }
  default:
  - if (user->IsElementwise()) {
  for (const int64 use_index : user->OperandIndices(current)) {
  if (!user->IsElementwiseOnOperand(use_index)) {
  // Found a user that is non-elementwise on the current
  @@ -270,11 +269,6 @@ bool AreTransitiveUsesEffectivelyElementwise(const HloInstruction* param,
  // Make sure the layout is not changed by the elementwise op.
  return false;
  }
  - } else {
  - VLOG(3) << "Cannot prove that the op is effectively elementwise: "
  - << user->ToString();
  - return false;
  - }
  break;
  } // end of switch
  if (!visited.contains(user)) {
  